X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FCsvImportProfile.pm;h=7a163b231f6259743d2d2b103b536a17f1563fee;hb=d860b41d55abbf46fa8b94ec445aca3a2bb4e0d6;hp=fb0d3da8e0982f5ec71ab73df461074e6dda7e7f;hpb=4b26e2437f1ea0d13980a1847cbfbfbd133cae2f;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/CsvImportProfile.pm b/SL/DB/MetaSetup/CsvImportProfile.pm index fb0d3da8e..7a163b231 100644 --- a/SL/DB/MetaSetup/CsvImportProfile.pm +++ b/SL/DB/MetaSetup/CsvImportProfile.pm @@ -6,21 +6,17 @@ 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' }, - ], - - primary_key_columns => [ 'id' ], - - unique_key => [ 'name' ], +__PACKAGE__->meta->columns( + id => { type => 'serial', not_null => 1 }, + is_default => { type => 'boolean', default => 'false' }, + login => { type => 'text' }, + name => { type => 'text', not_null => 1 }, + type => { type => 'varchar', length => 20, not_null => 1 }, ); +__PACKAGE__->meta->primary_key_columns([ 'id' ]); + 1; ;