Revision 3eb3d1b1
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/Draft.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('drafts'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
description => { type => 'text' }, |
|
13 |
employee_id => { type => 'integer' }, |
|
14 |
form => { type => 'text' }, |
|
12 | 15 |
id => { type => 'varchar', length => 50, not_null => 1 }, |
16 |
itime => { type => 'timestamp', default => 'now()' }, |
|
13 | 17 |
module => { type => 'varchar', length => 50, not_null => 1 }, |
14 | 18 |
submodule => { type => 'varchar', length => 50, not_null => 1 }, |
15 |
description => { type => 'text' }, |
|
16 |
itime => { type => 'timestamp', default => 'now()' }, |
|
17 |
form => { type => 'text' }, |
|
18 |
employee_id => { type => 'integer' }, |
|
19 | 19 |
); |
20 | 20 |
|
21 | 21 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
... | ... | |
29 | 29 |
}, |
30 | 30 |
); |
31 | 31 |
|
32 |
# __PACKAGE__->meta->initialize; |
|
33 |
|
|
34 | 32 |
1; |
35 | 33 |
; |
Auch abrufbar als: Unified diff
MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren