X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FAuthClientGroup.pm;h=9eac684155df210852e46fda95aa3896ade1260e;hb=377b705324a4c43ef21b838d4ea9d474132cf16f;hp=f4e2f87568d92a61b851ec0cdb57d8a4c5b9c46b;hpb=3568f2f8cb1f21031ee5255f054c0431544c5607;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/AuthClientGroup.pm b/SL/DB/MetaSetup/AuthClientGroup.pm index f4e2f8756..9eac68415 100644 --- a/SL/DB/MetaSetup/AuthClientGroup.pm +++ b/SL/DB/MetaSetup/AuthClientGroup.pm @@ -6,29 +6,29 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'clients_groups', - schema => 'auth', - - columns => [ - client_id => { type => 'integer', not_null => 1 }, - group_id => { type => 'integer', not_null => 1 }, - ], - - primary_key_columns => [ 'client_id', 'group_id' ], - - foreign_keys => [ - client => { - class => 'SL::DB::AuthClient', - key_columns => { client_id => 'id' }, - }, - - group => { - class => 'SL::DB::AuthGroup', - key_columns => { group_id => 'id' }, - }, - ], +__PACKAGE__->meta->table('clients_groups'); +__PACKAGE__->meta->schema('auth'); + +__PACKAGE__->meta->columns( + client_id => { type => 'integer', not_null => 1 }, + group_id => { type => 'integer', not_null => 1 }, +); + +__PACKAGE__->meta->primary_key_columns([ 'client_id', 'group_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' }, + }, ); +# __PACKAGE__->meta->initialize; + 1; ;