X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/d14a38bbaa7fcd371998b43bf389f56908575c7c..e214accccd89a9c8:/SL/DB/MetaSetup/MakeModel.pm?ds=inline diff --git a/SL/DB/MetaSetup/MakeModel.pm b/SL/DB/MetaSetup/MakeModel.pm index c6499a593..64f4d2a85 100644 --- a/SL/DB/MetaSetup/MakeModel.pm +++ b/SL/DB/MetaSetup/MakeModel.pm @@ -6,25 +6,23 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'makemodel', +__PACKAGE__->meta->table('makemodel'); - columns => [ - parts_id => { type => 'integer' }, - model => { type => 'text' }, - itime => { type => 'timestamp', default => 'now()' }, - mtime => { type => 'timestamp' }, - lastcost => { type => 'numeric', precision => 5, scale => 15 }, - lastupdate => { type => 'date' }, - sortorder => { type => 'integer' }, - make => { type => 'integer' }, - id => { type => 'serial', not_null => 1 }, - ], +__PACKAGE__->meta->columns( + id => { type => 'serial', not_null => 1 }, + itime => { type => 'timestamp', default => 'now()' }, + lastcost => { type => 'numeric', precision => 5, scale => 15 }, + lastupdate => { type => 'date' }, + make => { type => 'integer' }, + model => { type => 'text' }, + mtime => { type => 'timestamp' }, + parts_id => { type => 'integer' }, + sortorder => { type => 'integer' }, +); - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->primary_key_columns([ 'id' ]); - allow_inline_column_values => 1, -); +__PACKAGE__->meta->allow_inline_column_values(1); 1; ;