Revision b8b112a3
Von Sven Schöling vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/Warehouse.pm | ||
---|---|---|
6 | 6 |
|
7 | 7 |
use base qw(SL::DB::Object); |
8 | 8 |
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'warehouse', |
|
9 |
__PACKAGE__->meta->table('warehouse'); |
|
11 | 10 |
|
12 |
columns => [
|
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'id' },
|
|
14 |
description => { type => 'text' },
|
|
15 |
itime => { type => 'timestamp', default => 'now()' },
|
|
16 |
mtime => { type => 'timestamp' },
|
|
17 |
sortkey => { type => 'integer' },
|
|
18 |
invalid => { type => 'boolean' },
|
|
19 |
],
|
|
11 |
__PACKAGE__->meta->columns(
|
|
12 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
13 |
description => { type => 'text' }, |
|
14 |
itime => { type => 'timestamp', default => 'now()' }, |
|
15 |
mtime => { type => 'timestamp' }, |
|
16 |
sortkey => { type => 'integer' }, |
|
17 |
invalid => { type => 'boolean' }, |
|
18 |
);
|
|
20 | 19 |
|
21 |
primary_key_columns => [ 'id' ],
|
|
20 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
|
|
22 | 21 |
|
23 |
allow_inline_column_values => 1, |
|
24 |
); |
|
22 |
__PACKAGE__->meta->allow_inline_column_values(1); |
|
23 |
|
|
24 |
# __PACKAGE__->meta->initialize; |
|
25 | 25 |
|
26 | 26 |
1; |
27 | 27 |
; |
Auch abrufbar als: Unified diff
MetaSetup neu generiert