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/CustomVariable.pm
9 9
__PACKAGE__->meta->table('custom_variables');
10 10

  
11 11
__PACKAGE__->meta->columns(
12
  id              => { type => 'integer', not_null => 1, sequence => 'custom_variables_id' },
13
  config_id       => { type => 'integer', not_null => 1 },
14
  trans_id        => { type => 'integer', not_null => 1 },
15 12
  bool_value      => { type => 'boolean' },
16
  timestamp_value => { type => 'timestamp' },
17
  text_value      => { type => 'text' },
18
  number_value    => { type => 'numeric', precision => 5, scale => 25 },
13
  config_id       => { type => 'integer', not_null => 1 },
14
  id              => { type => 'integer', not_null => 1, sequence => 'custom_variables_id' },
19 15
  itime           => { type => 'timestamp', default => 'now()' },
20 16
  mtime           => { type => 'timestamp' },
17
  number_value    => { type => 'numeric', precision => 5, scale => 25 },
21 18
  sub_module      => { type => 'text', default => '', not_null => 1 },
19
  text_value      => { type => 'text' },
20
  timestamp_value => { type => 'timestamp' },
21
  trans_id        => { type => 'integer', not_null => 1 },
22 22
);
23 23

  
24 24
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
......
32 32
  },
33 33
);
34 34

  
35
# __PACKAGE__->meta->initialize;
36

  
37 35
1;
38 36
;

Auch abrufbar als: Unified diff