From 300dc61894ebcb800a69eae3e81195d3c337747d Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 3 Jul 2013 13:12:46 +0200 Subject: [PATCH] MetaSetup-Update durch Rose-Script mit --all --- SL/DB/MetaSetup/ProjectPhase.pm | 8 -------- SL/DB/MetaSetup/ProjectPhaseParticipant.pm | 5 +++++ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/SL/DB/MetaSetup/ProjectPhase.pm b/SL/DB/MetaSetup/ProjectPhase.pm index c39fcea3b..7039a9cc1 100644 --- a/SL/DB/MetaSetup/ProjectPhase.pm +++ b/SL/DB/MetaSetup/ProjectPhase.pm @@ -32,13 +32,5 @@ __PACKAGE__->meta->foreign_keys( }, ); -__PACKAGE__->meta->relationships( - project_phase_participants => { - class => 'SL::DB::ProjectPhaseParticipant', - column_map => { id => 'project_phase_id' }, - type => 'one to many', - }, -); - 1; ; diff --git a/SL/DB/MetaSetup/ProjectPhaseParticipant.pm b/SL/DB/MetaSetup/ProjectPhaseParticipant.pm index 169181f7d..6e9ca6b5a 100644 --- a/SL/DB/MetaSetup/ProjectPhaseParticipant.pm +++ b/SL/DB/MetaSetup/ProjectPhaseParticipant.pm @@ -27,6 +27,11 @@ __PACKAGE__->meta->foreign_keys( key_columns => { employee_id => 'id' }, }, + project_phase => { + class => 'SL::DB::ProjectPhase', + key_columns => { project_phase_id => 'id' }, + }, + project_role => { class => 'SL::DB::ProjectRole', key_columns => { project_role_id => 'id' }, -- 2.20.1