X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FBuchungsgruppe.pm;h=55d600c8d16f8399d10dd13fc99c85b2ac7b9c27;hb=afe7df8b3ebf17140e0d008ebb9852a6e392c3f4;hp=8acc5a75fe515968e30daa50c7eb07ed55347096;hpb=f9676efea9ccfa01df2a57dca9c45cc8fde0d09e;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Buchungsgruppe.pm b/SL/DB/MetaSetup/Buchungsgruppe.pm index 8acc5a75f..55d600c8d 100644 --- a/SL/DB/MetaSetup/Buchungsgruppe.pm +++ b/SL/DB/MetaSetup/Buchungsgruppe.pm @@ -6,26 +6,16 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'buchungsgruppen', +__PACKAGE__->meta->table('buchungsgruppen'); - columns => [ - id => { type => 'integer', not_null => 1, sequence => 'id' }, - description => { type => 'text' }, - inventory_accno_id => { type => 'integer' }, - income_accno_id_0 => { type => 'integer' }, - expense_accno_id_0 => { type => 'integer' }, - income_accno_id_1 => { type => 'integer' }, - expense_accno_id_1 => { type => 'integer' }, - income_accno_id_2 => { type => 'integer' }, - expense_accno_id_2 => { type => 'integer' }, - income_accno_id_3 => { type => 'integer' }, - expense_accno_id_3 => { type => 'integer' }, - sortkey => { type => 'integer', not_null => 1 }, - ], - - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->columns( + description => { type => 'text' }, + id => { type => 'integer', not_null => 1, sequence => 'id' }, + inventory_accno_id => { type => 'integer' }, + sortkey => { type => 'integer', not_null => 1 }, ); +__PACKAGE__->meta->primary_key_columns([ 'id' ]); + 1; ;