X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FCurrency.pm;h=2426feb11ad9feecad2c257aca9f49f2920e8f70;hb=a805ddafe2970ba5c07a59d90749fa0c7e24f903;hp=705467f03849890f7af16d2c486f2f2ac2a9c6de;hpb=26892ad4061a94cce873952f1e72d4f7badf6e3b;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Currency.pm b/SL/DB/MetaSetup/Currency.pm index 705467f03..2426feb11 100644 --- a/SL/DB/MetaSetup/Currency.pm +++ b/SL/DB/MetaSetup/Currency.pm @@ -4,20 +4,18 @@ package SL::DB::Currency; use strict; -use base qw(SL::DB::Object); +use parent 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; ;