X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/4b26e2437f1ea0d13980a1847cbfbfbd133cae2f..64b49f6c38c2c5763f21df00c7b4580ff70893be:/SL/DB/MetaSetup/CsvImportProfile.pm diff --git a/SL/DB/MetaSetup/CsvImportProfile.pm b/SL/DB/MetaSetup/CsvImportProfile.pm index fb0d3da8e..a435f8000 100644 --- a/SL/DB/MetaSetup/CsvImportProfile.pm +++ b/SL/DB/MetaSetup/CsvImportProfile.pm @@ -6,21 +6,19 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'csv_import_profiles', +__PACKAGE__->meta->table('csv_import_profiles'); - columns => [ - id => { type => 'serial', not_null => 1 }, - name => { type => 'text', not_null => 1 }, - type => { type => 'varchar', length => 20, not_null => 1 }, - is_default => { type => 'boolean', default => 'false' }, - login => { type => 'text' }, - ], +__PACKAGE__->meta->columns( + id => { type => 'serial', not_null => 1 }, + name => { type => 'text', not_null => 1 }, + type => { type => 'varchar', length => 20, not_null => 1 }, + is_default => { type => 'boolean', default => 'false' }, + login => { type => 'text' }, +); - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->primary_key_columns([ 'id' ]); - unique_key => [ 'name' ], -); +# __PACKAGE__->meta->initialize; 1; ;