Revision 3eb3d1b1
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/Department.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('department'); |
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 | 14 |
itime => { type => 'timestamp', default => 'now()' }, |
15 | 15 |
mtime => { type => 'timestamp' }, |
16 | 16 |
); |
... | ... | |
19 | 19 |
|
20 | 20 |
__PACKAGE__->meta->allow_inline_column_values(1); |
21 | 21 |
|
22 |
# __PACKAGE__->meta->initialize; |
|
23 |
|
|
24 | 22 |
1; |
25 | 23 |
; |
Auch abrufbar als: Unified diff
MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren