X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FAuthClientGroup.pm;h=d74a1ed2a4e29a9abef579844723b468a7ed6633;hb=4b4f09f600529e048be9e9d21357d1840759bdaa;hp=e9226394edea56fdff1c905408dcd4346425208f;hpb=3ced230d576cb0eff6f8b7805f1682c14e009ef9;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/AuthClientGroup.pm b/SL/DB/MetaSetup/AuthClientGroup.pm index e9226394e..d74a1ed2a 100644 --- a/SL/DB/MetaSetup/AuthClientGroup.pm +++ b/SL/DB/MetaSetup/AuthClientGroup.pm @@ -4,29 +4,28 @@ package SL::DB::AuthClientGroup; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'clients_groups', +__PACKAGE__->meta->table('clients_groups'); +__PACKAGE__->meta->schema('auth'); - columns => [ - client_id => { type => 'integer', not_null => 1 }, - group_id => { type => 'integer', not_null => 1 }, - ], +__PACKAGE__->meta->columns( + client_id => { type => 'integer', not_null => 1 }, + group_id => { type => 'integer', not_null => 1 }, +); - primary_key_columns => [ 'client_id', 'group_id' ], +__PACKAGE__->meta->primary_key_columns([ 'client_id', 'group_id' ]); - foreign_keys => [ - client => { - class => 'SL::DB::AuthClient', - key_columns => { client_id => 'id' }, - }, +__PACKAGE__->meta->foreign_keys( + client => { + class => 'SL::DB::AuthClient', + key_columns => { client_id => 'id' }, + }, - group => { - class => 'SL::DB::AuthGroup', - key_columns => { group_id => 'id' }, - }, - ], + group => { + class => 'SL::DB::AuthGroup', + key_columns => { group_id => 'id' }, + }, ); 1;