X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FBuchungsgruppe.pm;h=e89cb4b1cfe2b0ac679a8ce635b91ded0501bd2e;hb=842d6c44252d2294a4b65f2212f141d9290f7100;hp=55d600c8d16f8399d10dd13fc99c85b2ac7b9c27;hpb=f5c454e3855012bdb1928f3e4c4964403d4d8163;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Buchungsgruppe.pm b/SL/DB/MetaSetup/Buchungsgruppe.pm index 55d600c8d..e89cb4b1c 100644 --- a/SL/DB/MetaSetup/Buchungsgruppe.pm +++ b/SL/DB/MetaSetup/Buchungsgruppe.pm @@ -4,18 +4,25 @@ package SL::DB::Buchungsgruppe; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); __PACKAGE__->meta->table('buchungsgruppen'); __PACKAGE__->meta->columns( description => { type => 'text' }, id => { type => 'integer', not_null => 1, sequence => 'id' }, - inventory_accno_id => { type => 'integer' }, + inventory_accno_id => { type => 'integer', not_null => 1 }, sortkey => { type => 'integer', not_null => 1 }, ); __PACKAGE__->meta->primary_key_columns([ 'id' ]); +__PACKAGE__->meta->foreign_keys( + inventory_accno => { + class => 'SL::DB::Chart', + key_columns => { inventory_accno_id => 'id' }, + }, +); + 1; ;