From 1ee23a2d739f95fd752d0a21d83edfb6b8fa0c66 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 6 Jun 2013 15:24:32 +0200 Subject: [PATCH] =?utf8?q?Rose-Schema=20f=C3=BCr=20auth.*-Tabellen=20aktua?= =?utf8?q?lisiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/MetaSetup/AuthGroupRight.pm | 7 +++++++ SL/DB/MetaSetup/AuthUserConfig.pm | 7 +++++++ SL/DB/MetaSetup/AuthUserGroup.pm | 10 +++++----- 3 files changed, 19 insertions(+), 5 deletions(-) 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' }, + }, ], ); -- 2.20.1