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