X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/26892ad4061a94cce873952f1e72d4f7badf6e3b..ada964d139eb652502bbdec96adf8634e49d8872:/SL/DB/MetaSetup/Currency.pm 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; ;