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