X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FAuthGroupRight.pm;h=7c98d2ab24a1064073fc3f72d1e449c08a58e4f6;hb=7c60c2423f6fd27a78cf89ca62821ea1e41e85f5;hp=0cf5d7211a523e4ca025642a96201669f7ff8a58;hpb=e055700faea1906bea6c03184ba4516b57cac887;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/AuthGroupRight.pm b/SL/DB/MetaSetup/AuthGroupRight.pm index 0cf5d7211..7c98d2ab2 100644 --- a/SL/DB/MetaSetup/AuthGroupRight.pm +++ b/SL/DB/MetaSetup/AuthGroupRight.pm @@ -8,6 +8,7 @@ use base qw(SL::DB::Object); __PACKAGE__->meta->setup( table => 'group_rights', + schema => 'auth', columns => [ group_id => { type => 'integer', not_null => 1 }, @@ -16,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;