X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FTransferType.pm;h=e9c4594404dacc7bd56f67a3c1a3e5bf94d3a654;hb=97a6f6d623a9810e1d324f44a5f8bcd12294f5d3;hp=1f018bfd4d3c7ffe1dad310e039979f85fa137b6;hpb=6cf3f7762efd40bee49a2b8f11bb4ab6915d9071;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/TransferType.pm b/SL/DB/MetaSetup/TransferType.pm index 1f018bfd4..e9c459440 100644 --- a/SL/DB/MetaSetup/TransferType.pm +++ b/SL/DB/MetaSetup/TransferType.pm @@ -4,24 +4,22 @@ package SL::DB::TransferType; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'transfer_type', +__PACKAGE__->meta->table('transfer_type'); - columns => [ - id => { type => 'integer', not_null => 1, sequence => 'id' }, - direction => { type => 'varchar', length => 10, not_null => 1 }, - description => { type => 'text' }, - sortkey => { type => 'integer' }, - itime => { type => 'timestamp', default => 'now()' }, - mtime => { type => 'timestamp' }, - ], +__PACKAGE__->meta->columns( + description => { type => 'text' }, + direction => { type => 'varchar', length => 10, not_null => 1 }, + id => { type => 'integer', not_null => 1, sequence => 'id' }, + itime => { type => 'timestamp', default => 'now()' }, + mtime => { type => 'timestamp' }, + sortkey => { 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; ;