X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FCurrency.pm;h=5d7d6138d5e10d1b2fcccef898a9797903fb59af;hb=5bd7e74db1f425a8bbc43357e949efcc1d4eb135;hp=705467f03849890f7af16d2c486f2f2ac2a9c6de;hpb=82053b457be3de2ee5285dc13633222f4d30802c;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Currency.pm b/SL/DB/MetaSetup/Currency.pm index 705467f03..5d7d6138d 100644 --- a/SL/DB/MetaSetup/Currency.pm +++ b/SL/DB/MetaSetup/Currency.pm @@ -6,18 +6,16 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'currencies', +__PACKAGE__->meta->table('currencies'); - columns => [ - id => { type => 'serial', not_null => 1 }, - name => { type => 'text', not_null => 1 }, - ], +__PACKAGE__->meta->columns( + id => { type => 'serial', not_null => 1 }, + name => { type => 'text', not_null => 1 }, +); - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->primary_key_columns([ 'id' ]); - unique_key => [ 'name' ], -); +__PACKAGE__->meta->unique_keys([ 'name' ]); 1; ;