X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FAuthUserConfig.pm;h=ef9e3489511f61dca5587f3bcbb2bc7f5b930b68;hb=7c60c2423f6fd27a78cf89ca62821ea1e41e85f5;hp=2d132eb6a97ec65edba2f2faba0bf40d6bc06bef;hpb=cf889668782d1ffbb76b9f28e1d36848544fa3b3;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/AuthUserConfig.pm b/SL/DB/MetaSetup/AuthUserConfig.pm index 2d132eb6a..ef9e34895 100644 --- a/SL/DB/MetaSetup/AuthUserConfig.pm +++ b/SL/DB/MetaSetup/AuthUserConfig.pm @@ -8,6 +8,7 @@ use base qw(SL::DB::Object); __PACKAGE__->meta->setup( table => 'user_config', + schema => 'auth', columns => [ user_id => { type => 'integer', not_null => 1 }, @@ -16,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;