X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/b8b112a39bd601b0bc717646d78de470631da22a..04caff2d7309da75f53424675795addff173f32c:/SL/DB/MetaSetup/Price.pm diff --git a/SL/DB/MetaSetup/Price.pm b/SL/DB/MetaSetup/Price.pm index 2fec15f4e..29c0de338 100644 --- a/SL/DB/MetaSetup/Price.pm +++ b/SL/DB/MetaSetup/Price.pm @@ -4,15 +4,15 @@ package SL::DB::Price; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); __PACKAGE__->meta->table('prices'); __PACKAGE__->meta->columns( + id => { type => 'serial', not_null => 1 }, parts_id => { type => 'integer' }, + price => { type => 'numeric', precision => 15, scale => 5 }, pricegroup_id => { type => 'integer' }, - price => { type => 'numeric', precision => 5, scale => 15 }, - id => { type => 'serial', not_null => 1 }, ); __PACKAGE__->meta->primary_key_columns([ 'id' ]); @@ -29,7 +29,5 @@ __PACKAGE__->meta->foreign_keys( }, ); -# __PACKAGE__->meta->initialize; - 1; ;