X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/f9676efea9ccfa01df2a57dca9c45cc8fde0d09e..ba802064109d19f3488e5555ec04491681e37b51:/SL/DB/MetaSetup/PriceFactor.pm diff --git a/SL/DB/MetaSetup/PriceFactor.pm b/SL/DB/MetaSetup/PriceFactor.pm index 2eeb5967a..a67b805eb 100644 --- a/SL/DB/MetaSetup/PriceFactor.pm +++ b/SL/DB/MetaSetup/PriceFactor.pm @@ -6,18 +6,16 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'price_factors', +__PACKAGE__->meta->table('price_factors'); - columns => [ - id => { type => 'integer', not_null => 1, sequence => 'id' }, - description => { type => 'text' }, - factor => { type => 'numeric', precision => 5, scale => 15 }, - sortkey => { type => 'integer' }, - ], - - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->columns( + description => { type => 'text' }, + factor => { type => 'numeric', precision => 15, scale => 5 }, + id => { type => 'integer', not_null => 1, sequence => 'id' }, + sortkey => { type => 'integer' }, ); +__PACKAGE__->meta->primary_key_columns([ 'id' ]); + 1; ;