X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FAuthUser.pm;h=50b87ed1135ef77d7e48ae95cc0bed1664f647de;hb=687f2d9638182ead968d333af325c912d903b675;hp=04bc23ef50d8a97ab0660311c21e1e191eda4df7;hpb=e055700faea1906bea6c03184ba4516b57cac887;p=kivitendo-erp.git 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; ;