X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FDB%2FMetaSetup%2FBankAccount.pm;h=d8be5aacf22aa24d0d051d42c90b279582ae3d7c;hb=377b705324a4c43ef21b838d4ea9d474132cf16f;hp=5cd8e7a3950238c415c087846f0d11ed369f540e;hpb=4fd22b569d4436293e0a9d364d7356b5bfc503e5;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/BankAccount.pm b/SL/DB/MetaSetup/BankAccount.pm index 5cd8e7a39..d8be5aacf 100644 --- a/SL/DB/MetaSetup/BankAccount.pm +++ b/SL/DB/MetaSetup/BankAccount.pm @@ -6,27 +6,25 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'bank_accounts', +__PACKAGE__->meta->table('bank_accounts'); - columns => [ - id => { type => 'integer', not_null => 1, sequence => 'id' }, - account_number => { type => 'varchar', length => 100 }, - bank_code => { type => 'varchar', length => 100 }, - iban => { type => 'varchar', length => 100 }, - bic => { type => 'varchar', length => 100 }, - bank => { type => 'text' }, - chart_id => { type => 'integer', not_null => 1 }, - ], +__PACKAGE__->meta->columns( + account_number => { type => 'varchar', length => 100 }, + bank => { type => 'text' }, + bank_code => { type => 'varchar', length => 100 }, + bic => { type => 'varchar', length => 100 }, + chart_id => { type => 'integer', not_null => 1 }, + iban => { type => 'varchar', length => 100 }, + id => { type => 'integer', not_null => 1, sequence => 'id' }, +); - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->primary_key_columns([ 'id' ]); - foreign_keys => [ - chart => { - class => 'SL::DB::Chart', - key_columns => { chart_id => 'id' }, - }, - ], +__PACKAGE__->meta->foreign_keys( + chart => { + class => 'SL::DB::Chart', + key_columns => { chart_id => 'id' }, + }, ); 1;