Revision 3eb3d1b1
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
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
MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren