X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/3ceb381944924a7b6a14d69361754422b8b49589..05047096df7e18aad6331c61e705499c2820ddde:/SL/DB/MetaSetup/AuthUser.pm diff --git a/SL/DB/MetaSetup/AuthUser.pm b/SL/DB/MetaSetup/AuthUser.pm index 04bc23ef5..50b87ed11 100644 --- a/SL/DB/MetaSetup/AuthUser.pm +++ b/SL/DB/MetaSetup/AuthUser.pm @@ -6,19 +6,20 @@ use strict; use base 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' ]); + +# __PACKAGE__->meta->initialize; 1; ;