X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FAuthUser.pm;h=ab05ab0b2ed2da4be07b17841b903602cb10be86;hb=97a6f6d623a9810e1d324f44a5f8bcd12294f5d3;hp=04bc23ef50d8a97ab0660311c21e1e191eda4df7;hpb=cf889668782d1ffbb76b9f28e1d36848544fa3b3;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/AuthUser.pm b/SL/DB/MetaSetup/AuthUser.pm index 04bc23ef5..ab05ab0b2 100644 --- a/SL/DB/MetaSetup/AuthUser.pm +++ b/SL/DB/MetaSetup/AuthUser.pm @@ -4,21 +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', +__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; ;