X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FRecordLink.pm;h=cf2c696be138eda4c0c2fbdea5ac39b03b9251cb;hb=ea32f94d4ea8a8fd505fbd3eead7ae44dbc22f06;hp=7bbd67a275b9a68f89f403f75a534452f8dc7751;hpb=b8b112a39bd601b0bc717646d78de470631da22a;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/RecordLink.pm b/SL/DB/MetaSetup/RecordLink.pm index 7bbd67a27..cf2c696be 100644 --- a/SL/DB/MetaSetup/RecordLink.pm +++ b/SL/DB/MetaSetup/RecordLink.pm @@ -4,24 +4,22 @@ package SL::DB::RecordLink; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); __PACKAGE__->meta->table('record_links'); __PACKAGE__->meta->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()' }, + 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 }, ); __PACKAGE__->meta->primary_key_columns([ 'id' ]); __PACKAGE__->meta->allow_inline_column_values(1); -# __PACKAGE__->meta->initialize; - 1; ;