Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3eb3d1b1

Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt

  • ID 3eb3d1b144adb92e62de08e67dc6ff3d39bf7483
  • Vorgänger e7ae5b6a
  • Nachfolger 0b5b8355

MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren

Unterschiede anzeigen:

SL/DB/MetaSetup/CustomVariableConfig.pm
9 9
__PACKAGE__->meta->table('custom_variable_configs');
10 10

  
11 11
__PACKAGE__->meta->columns(
12
  id                  => { type => 'integer', not_null => 1, sequence => 'custom_variable_configs_id' },
13
  name                => { type => 'text', not_null => 1 },
14
  description         => { type => 'text', not_null => 1 },
15
  type                => { type => 'text', not_null => 1 },
16
  module              => { type => 'text', not_null => 1 },
17 12
  default_value       => { type => 'text' },
18
  options             => { type => 'text' },
19
  searchable          => { type => 'boolean', not_null => 1 },
13
  description         => { type => 'text', not_null => 1 },
14
  flags               => { type => 'text' },
15
  id                  => { type => 'integer', not_null => 1, sequence => 'custom_variable_configs_id' },
20 16
  includeable         => { type => 'boolean', not_null => 1 },
21 17
  included_by_default => { type => 'boolean', not_null => 1 },
22
  sortkey             => { type => 'integer', not_null => 1 },
23 18
  itime               => { type => 'timestamp', default => 'now()' },
19
  module              => { type => 'text', not_null => 1 },
24 20
  mtime               => { type => 'timestamp' },
25
  flags               => { type => 'text' },
21
  name                => { type => 'text', not_null => 1 },
22
  options             => { type => 'text' },
23
  searchable          => { type => 'boolean', not_null => 1 },
24
  sortkey             => { type => 'integer', not_null => 1 },
25
  type                => { type => 'text', not_null => 1 },
26 26
);
27 27

  
28 28
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
29 29

  
30 30
__PACKAGE__->meta->allow_inline_column_values(1);
31 31

  
32
# __PACKAGE__->meta->initialize;
33

  
34 32
1;
35 33
;

Auch abrufbar als: Unified diff