X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FRequirementSpecItem.pm;h=62f9bcca7093760c700147ef75342f234bb9a4d6;hb=013804fdf4b69b04889d8bf8af182eda9e9d95a5;hp=85cfc362a3c94bd09a15b2f52c9f673d28c25943;hpb=d17e1b9d1b761bb19d0cb79a742ea70a07028998;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/RequirementSpecItem.pm b/SL/DB/MetaSetup/RequirementSpecItem.pm index 85cfc362a..62f9bcca7 100644 --- a/SL/DB/MetaSetup/RequirementSpecItem.pm +++ b/SL/DB/MetaSetup/RequirementSpecItem.pm @@ -12,6 +12,7 @@ __PACKAGE__->meta->setup( columns => [ id => { type => 'serial', not_null => 1 }, requirement_spec_id => { type => 'integer', not_null => 1 }, + item_type => { type => 'text', not_null => 1 }, parent_id => { type => 'integer' }, position => { type => 'integer', not_null => 1 }, fb_number => { type => 'text', not_null => 1 }, @@ -47,21 +48,15 @@ __PACKAGE__->meta->setup( class => 'SL::DB::RequirementSpecItem', key_columns => { parent_id => 'id' }, }, - ], - relationships => [ - depended_items => { - map_class => 'SL::DB::RequirementSpecDependency', - map_from => 'depending_item', - map_to => 'depended_item', - type => 'many to many', + requirement_spec => { + class => 'SL::DB::RequirementSpec', + key_columns => { requirement_spec_id => 'id' }, }, - depending_items => { - map_class => 'SL::DB::RequirementSpecDependency', - map_from => 'depended_item', - map_to => 'depending_item', - type => 'many to many', + risk => { + class => 'SL::DB::RequirementSpecRisk', + key_columns => { risk_id => 'id' }, }, ], );