X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/6b935d522a38e1a20802c25ed51a15e0cd292c1d..53593baa211863fbf66540cf1bcc36c8fb37257f:/SL/DB/MetaSetup/AuthGroup.pm diff --git a/SL/DB/MetaSetup/AuthGroup.pm b/SL/DB/MetaSetup/AuthGroup.pm index 31d49153a..d1bc5fd88 100644 --- a/SL/DB/MetaSetup/AuthGroup.pm +++ b/SL/DB/MetaSetup/AuthGroup.pm @@ -4,21 +4,20 @@ package SL::DB::AuthGroup; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'group', +__PACKAGE__->meta->table('group'); +__PACKAGE__->meta->schema('auth'); - columns => [ - id => { type => 'serial', not_null => 1 }, - name => { type => 'text', not_null => 1 }, - description => { type => 'text' }, - ], +__PACKAGE__->meta->columns( + description => { type => 'text' }, + id => { type => 'serial', not_null => 1 }, + name => { type => 'text', not_null => 1 }, +); - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->primary_key_columns([ 'id' ]); - unique_key => [ 'name' ], -); +__PACKAGE__->meta->unique_keys([ 'name' ]); 1; ;