X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FRequirementSpecVersion.pm;h=b03a28c3be1ce6f1a0a32805250b613e310cbabd;hb=33e8932ce36d4fbe58a9649b1a233c54f6400d6d;hp=fd0dddf21a7e8d71a7904a2c162c194ccaf1637c;hpb=1561b7f3d98390ba97bd5a81945f16e82d96915b;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/RequirementSpecVersion.pm b/SL/DB/MetaSetup/RequirementSpecVersion.pm index fd0dddf21..b03a28c3b 100644 --- a/SL/DB/MetaSetup/RequirementSpecVersion.pm +++ b/SL/DB/MetaSetup/RequirementSpecVersion.pm @@ -4,20 +4,19 @@ package SL::DB::RequirementSpecVersion; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); __PACKAGE__->meta->table('requirement_spec_versions'); __PACKAGE__->meta->columns( - comment => { type => 'text' }, - description => { type => 'text', not_null => 1 }, - id => { type => 'serial', not_null => 1 }, - itime => { type => 'timestamp', default => 'now()' }, - mtime => { type => 'timestamp' }, - order_date => { type => 'date' }, - order_id => { type => 'integer' }, - order_number => { type => 'text' }, - version_number => { type => 'integer' }, + comment => { type => 'text' }, + description => { type => 'text', not_null => 1 }, + id => { type => 'serial', not_null => 1 }, + itime => { type => 'timestamp', default => 'now()' }, + mtime => { type => 'timestamp' }, + requirement_spec_id => { type => 'integer', not_null => 1 }, + version_number => { type => 'integer' }, + working_copy_id => { type => 'integer' }, ); __PACKAGE__->meta->primary_key_columns([ 'id' ]); @@ -25,9 +24,14 @@ __PACKAGE__->meta->primary_key_columns([ 'id' ]); __PACKAGE__->meta->allow_inline_column_values(1); __PACKAGE__->meta->foreign_keys( - order => { - class => 'SL::DB::Order', - key_columns => { order_id => 'id' }, + requirement_spec => { + class => 'SL::DB::RequirementSpec', + key_columns => { requirement_spec_id => 'id' }, + }, + + working_copy => { + class => 'SL::DB::RequirementSpec', + key_columns => { working_copy_id => 'id' }, }, );