X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FAuthGroupRight.pm;h=1befd3180fbc9a7449b1c5f56079f1d1503fb8cf;hb=68e4c3a2d381e0b1b5b8cf317a6bed22973aace9;hp=7c98d2ab24a1064073fc3f72d1e449c08a58e4f6;hpb=1ee23a2d739f95fd752d0a21d83edfb6b8fa0c66;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/AuthGroupRight.pm b/SL/DB/MetaSetup/AuthGroupRight.pm index 7c98d2ab2..1befd3180 100644 --- a/SL/DB/MetaSetup/AuthGroupRight.pm +++ b/SL/DB/MetaSetup/AuthGroupRight.pm @@ -6,25 +6,25 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'group_rights', - schema => 'auth', - - columns => [ - group_id => { type => 'integer', not_null => 1 }, - right => { type => 'text', not_null => 1 }, - granted => { type => 'boolean', not_null => 1 }, - ], - - primary_key_columns => [ 'group_id', 'right' ], - - foreign_keys => [ - group => { - class => 'SL::DB::AuthGroup', - key_columns => { group_id => 'id' }, - }, - ], +__PACKAGE__->meta->table('group_rights'); +__PACKAGE__->meta->schema('auth'); + +__PACKAGE__->meta->columns( + group_id => { type => 'integer', not_null => 1 }, + right => { type => 'text', not_null => 1 }, + granted => { type => 'boolean', not_null => 1 }, ); +__PACKAGE__->meta->primary_key_columns([ 'group_id', 'right' ]); + +__PACKAGE__->meta->foreign_keys( + group => { + class => 'SL::DB::AuthGroup', + key_columns => { group_id => 'id' }, + }, +); + +# __PACKAGE__->meta->initialize; + 1; ;