Revision 3eb3d1b1
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/UnitsLanguage.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('units_language'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
unit => { type => 'varchar', length => 20, not_null => 1 },
|
|
12 |
id => { type => 'serial', not_null => 1 },
|
|
13 | 13 |
language_id => { type => 'integer', not_null => 1 }, |
14 | 14 |
localized => { type => 'varchar', length => 20 }, |
15 | 15 |
localized_plural => { type => 'varchar', length => 20 }, |
16 |
id => { type => 'serial', not_null => 1 },
|
|
16 |
unit => { type => 'varchar', length => 20, not_null => 1 },
|
|
17 | 17 |
); |
18 | 18 |
|
19 | 19 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
... | ... | |
30 | 30 |
}, |
31 | 31 |
); |
32 | 32 |
|
33 |
# __PACKAGE__->meta->initialize; |
|
34 |
|
|
35 | 33 |
1; |
36 | 34 |
; |
Auch abrufbar als: Unified diff
MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren