X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FAuthClient.pm;h=8eb841cddb05541af40c73d71901159ddab82385;hb=1af50c02794dc8b5e495de1e5b8c739bb94f7dc5;hp=1b0a81a54a885e2c25ce706de1501bddbc5ed43d;hpb=3ced230d576cb0eff6f8b7805f1682c14e009ef9;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/AuthClient.pm b/SL/DB/MetaSetup/AuthClient.pm index 1b0a81a54..8eb841cdd 100644 --- a/SL/DB/MetaSetup/AuthClient.pm +++ b/SL/DB/MetaSetup/AuthClient.pm @@ -6,27 +6,28 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'clients', - - columns => [ - id => { type => 'serial', not_null => 1 }, - name => { type => 'text', not_null => 1 }, - dbhost => { type => 'text', not_null => 1 }, - dbport => { type => 'integer', default => 5432, not_null => 1 }, - dbname => { type => 'text', not_null => 1 }, - dbuser => { type => 'text', not_null => 1 }, - dbpasswd => { type => 'text', not_null => 1 }, - is_default => { type => 'boolean', default => 'false', not_null => 1 }, - ], - - primary_key_columns => [ 'id' ], - - unique_keys => [ - [ 'dbhost', 'dbport', 'dbname' ], - [ 'name' ], - ], +__PACKAGE__->meta->table('clients'); +__PACKAGE__->meta->schema('auth'); + +__PACKAGE__->meta->columns( + id => { type => 'serial', not_null => 1 }, + name => { type => 'text', not_null => 1 }, + dbhost => { type => 'text', not_null => 1 }, + dbport => { type => 'integer', default => 5432, not_null => 1 }, + dbname => { type => 'text', not_null => 1 }, + dbuser => { type => 'text', not_null => 1 }, + dbpasswd => { type => 'text', not_null => 1 }, + is_default => { type => 'boolean', default => 'false', not_null => 1 }, ); +__PACKAGE__->meta->primary_key_columns([ 'id' ]); + +__PACKAGE__->meta->unique_keys( + [ 'dbhost', 'dbport', 'dbname' ], + [ 'name' ], +); + +# __PACKAGE__->meta->initialize; + 1; ;