X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FDepartment.pm;h=f3e049857128d172027dcc4a358695f5b0454121;hb=36703a86a998c7c395f110f94b3b3feebc2a3a80;hp=93aa92cdc653d04d48db9c0362a1e934247ed286;hpb=debd14edcc23a6168e827be861a052f396aee901;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Department.pm b/SL/DB/MetaSetup/Department.pm index 93aa92cdc..f3e049857 100644 --- a/SL/DB/MetaSetup/Department.pm +++ b/SL/DB/MetaSetup/Department.pm @@ -6,18 +6,18 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'department', +__PACKAGE__->meta->table('department'); - columns => [ - id => { type => 'integer', not_null => 1, sequence => 'id' }, - description => { type => 'text' }, - itime => { type => 'timestamp', default => 'now()' }, - mtime => { type => 'timestamp' }, - ], - - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->columns( + description => { type => 'text' }, + id => { type => 'integer', not_null => 1, sequence => 'id' }, + itime => { type => 'timestamp', default => 'now()' }, + mtime => { type => 'timestamp' }, ); +__PACKAGE__->meta->primary_key_columns([ 'id' ]); + +__PACKAGE__->meta->allow_inline_column_values(1); + 1; ;