X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FUnit.pm;h=d0ef2f7fb664415a43fb8073c53ab09eb9c9e669;hb=68e4c3a2d381e0b1b5b8cf317a6bed22973aace9;hp=0849b4eb34a11b987513fdfb5622252b9f8cf6c3;hpb=b8b112a39bd601b0bc717646d78de470631da22a;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Unit.pm b/SL/DB/MetaSetup/Unit.pm index 0849b4eb3..d0ef2f7fb 100644 --- a/SL/DB/MetaSetup/Unit.pm +++ b/SL/DB/MetaSetup/Unit.pm @@ -9,12 +9,12 @@ use base qw(SL::DB::Object); __PACKAGE__->meta->table('units'); __PACKAGE__->meta->columns( - name => { type => 'varchar', length => 20, not_null => 1 }, base_unit => { type => 'varchar', length => 20 }, - factor => { type => 'numeric', precision => 5, scale => 20 }, - type => { type => 'varchar', length => 20 }, - sortkey => { type => 'integer', not_null => 1 }, + factor => { type => 'numeric', precision => 20, scale => 5 }, id => { type => 'serial', not_null => 1 }, + name => { type => 'varchar', length => 20, not_null => 1 }, + sortkey => { type => 'integer', not_null => 1 }, + type => { type => 'varchar', length => 20 }, ); __PACKAGE__->meta->primary_key_columns([ 'name' ]); @@ -28,7 +28,5 @@ __PACKAGE__->meta->foreign_keys( }, ); -# __PACKAGE__->meta->initialize; - 1; ;