Revision 3eb3d1b1
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/Warehouse.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('warehouse'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
13 | 12 |
description => { type => 'text' }, |
13 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
14 |
invalid => { type => 'boolean' }, |
|
14 | 15 |
itime => { type => 'timestamp', default => 'now()' }, |
15 | 16 |
mtime => { type => 'timestamp' }, |
16 | 17 |
sortkey => { type => 'integer' }, |
17 |
invalid => { type => 'boolean' }, |
|
18 | 18 |
); |
19 | 19 |
|
20 | 20 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
21 | 21 |
|
22 | 22 |
__PACKAGE__->meta->allow_inline_column_values(1); |
23 | 23 |
|
24 |
# __PACKAGE__->meta->initialize; |
|
25 |
|
|
26 | 24 |
1; |
27 | 25 |
; |
Auch abrufbar als: Unified diff
MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren