X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/841d44c00aae1166a0721e40dc2f9ffb7b9ac5b5..f63bc3db2b0dc62707d4fc75d882e68c06bbcec5:/SL/DB/MetaSetup/AuthUser.pm?ds=sidebyside diff --git a/SL/DB/MetaSetup/AuthUser.pm b/SL/DB/MetaSetup/AuthUser.pm index 217519041..ab05ab0b2 100644 --- a/SL/DB/MetaSetup/AuthUser.pm +++ b/SL/DB/MetaSetup/AuthUser.pm @@ -4,22 +4,20 @@ package SL::DB::AuthUser; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'user', - schema => 'auth', +__PACKAGE__->meta->table('user'); +__PACKAGE__->meta->schema('auth'); - columns => [ - id => { type => 'serial', not_null => 1 }, - login => { type => 'text', not_null => 1 }, - password => { type => 'text' }, - ], +__PACKAGE__->meta->columns( + id => { type => 'serial', not_null => 1 }, + login => { type => 'text', not_null => 1 }, + password => { type => 'text' }, +); - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->primary_key_columns([ 'id' ]); - unique_key => [ 'login' ], -); +__PACKAGE__->meta->unique_keys([ 'login' ]); 1; ;