Revision 5b77c5df
Von Moritz Bunkus vor etwa 9 Jahren hinzugefügt
SL/DB/MetaSetup/Buchungsgruppe.pm | ||
---|---|---|
11 | 11 |
__PACKAGE__->meta->columns( |
12 | 12 |
description => { type => 'text' }, |
13 | 13 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
14 |
inventory_accno_id => { type => 'integer' }, |
|
14 |
inventory_accno_id => { type => 'integer', not_null => 1 },
|
|
15 | 15 |
sortkey => { type => 'integer', not_null => 1 }, |
16 | 16 |
); |
17 | 17 |
|
18 | 18 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
19 | 19 |
|
20 |
__PACKAGE__->meta->foreign_keys( |
|
21 |
inventory_accno => { |
|
22 |
class => 'SL::DB::Chart', |
|
23 |
key_columns => { inventory_accno_id => 'id' }, |
|
24 |
}, |
|
25 |
); |
|
26 |
|
|
20 | 27 |
1; |
21 | 28 |
; |
Auch abrufbar als: Unified diff
Rose-Schema für fbf7532 aktualisiert
Mea culpa :)