From: Moritz Bunkus Date: Thu, 6 Jun 2013 13:24:32 +0000 (+0200) Subject: Rose-Schema für auth.*-Tabellen aktualisiert X-Git-Tag: release-3.1.0beta1~331^2~54 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1ee23a2d739f95fd752d0a21d83edfb6b8fa0c66;p=kivitendo-erp.git Rose-Schema für auth.*-Tabellen aktualisiert --- diff --git a/SL/DB/MetaSetup/AuthGroupRight.pm b/SL/DB/MetaSetup/AuthGroupRight.pm index 677796631..7c98d2ab2 100644 --- a/SL/DB/MetaSetup/AuthGroupRight.pm +++ b/SL/DB/MetaSetup/AuthGroupRight.pm @@ -17,6 +17,13 @@ __PACKAGE__->meta->setup( ], primary_key_columns => [ 'group_id', 'right' ], + + foreign_keys => [ + group => { + class => 'SL::DB::AuthGroup', + key_columns => { group_id => 'id' }, + }, + ], ); 1; diff --git a/SL/DB/MetaSetup/AuthUserConfig.pm b/SL/DB/MetaSetup/AuthUserConfig.pm index 688998b57..ef9e34895 100644 --- a/SL/DB/MetaSetup/AuthUserConfig.pm +++ b/SL/DB/MetaSetup/AuthUserConfig.pm @@ -17,6 +17,13 @@ __PACKAGE__->meta->setup( ], primary_key_columns => [ 'user_id', 'cfg_key' ], + + foreign_keys => [ + user => { + class => 'SL::DB::AuthUser', + key_columns => { user_id => 'id' }, + }, + ], ); 1; diff --git a/SL/DB/MetaSetup/AuthUserGroup.pm b/SL/DB/MetaSetup/AuthUserGroup.pm index 86a0ed571..226921f3c 100644 --- a/SL/DB/MetaSetup/AuthUserGroup.pm +++ b/SL/DB/MetaSetup/AuthUserGroup.pm @@ -18,15 +18,15 @@ __PACKAGE__->meta->setup( primary_key_columns => [ 'user_id', 'group_id' ], foreign_keys => [ - user => { - class => 'SL::DB::AuthUser', - key_columns => { user_id => 'id' }, - }, - group => { class => 'SL::DB::AuthGroup', key_columns => { group_id => 'id' }, }, + + user => { + class => 'SL::DB::AuthUser', + key_columns => { user_id => 'id' }, + }, ], );