X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FDB%2FMetaSetup%2FRecordLink.pm;h=3daa6c483cb96831578a0af59706c7f1ad365cb9;hb=843de7839af752ec61b80616aaca6af5aadbf7fc;hp=4059be814e91a5e6e866f7116e9a38e01eb0fdd1;hpb=f9676efea9ccfa01df2a57dca9c45cc8fde0d09e;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/RecordLink.pm b/SL/DB/MetaSetup/RecordLink.pm index 4059be814..3daa6c483 100644 --- a/SL/DB/MetaSetup/RecordLink.pm +++ b/SL/DB/MetaSetup/RecordLink.pm @@ -6,22 +6,20 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'record_links', +__PACKAGE__->meta->table('record_links'); - columns => [ - from_table => { type => 'varchar', length => 50, not_null => 1 }, - from_id => { type => 'integer', not_null => 1 }, - to_table => { type => 'varchar', length => 50, not_null => 1 }, - to_id => { type => 'integer', not_null => 1 }, - itime => { type => 'timestamp', default => 'now()' }, - id => { type => 'serial', not_null => 1 }, - ], +__PACKAGE__->meta->columns( + from_id => { type => 'integer', not_null => 1 }, + from_table => { type => 'varchar', length => 50, not_null => 1 }, + id => { type => 'serial', not_null => 1 }, + itime => { type => 'timestamp', default => 'now()' }, + to_id => { type => 'integer', not_null => 1 }, + to_table => { type => 'varchar', length => 50, not_null => 1 }, +); - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->primary_key_columns([ 'id' ]); - allow_inline_column_values => 1, -); +__PACKAGE__->meta->allow_inline_column_values(1); 1; ;