Revision b8b112a3
Von Sven Schöling vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/TaxZone.pm | ||
---|---|---|
6 | 6 |
|
7 | 7 |
use base qw(SL::DB::Object); |
8 | 8 |
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'tax_zones', |
|
9 |
__PACKAGE__->meta->table('tax_zones'); |
|
11 | 10 |
|
12 |
columns => [ |
|
13 |
id => { type => 'integer', not_null => 1 }, |
|
14 |
description => { type => 'text' }, |
|
15 |
], |
|
16 |
|
|
17 |
primary_key_columns => [ 'id' ], |
|
11 |
__PACKAGE__->meta->columns( |
|
12 |
id => { type => 'integer', not_null => 1 }, |
|
13 |
description => { type => 'text' }, |
|
18 | 14 |
); |
19 | 15 |
|
16 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
|
17 |
|
|
18 |
# __PACKAGE__->meta->initialize; |
|
19 |
|
|
20 | 20 |
1; |
21 | 21 |
; |
Auch abrufbar als: Unified diff
MetaSetup neu generiert