X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FCsvImportProfile.pm;h=2366802e839cc74d2105f0b08b89a5598c4d1e8b;hb=30b8dc1025aad59401d2648d0a39776bcb084c85;hp=e01fe28f1b6d3954d7214c4b27255d52802b7f68;hpb=560f649276f44f31a28cb61b7db161f4db6bac46;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/CsvImportProfile.pm b/SL/DB/MetaSetup/CsvImportProfile.pm index e01fe28f1..2366802e8 100644 --- a/SL/DB/MetaSetup/CsvImportProfile.pm +++ b/SL/DB/MetaSetup/CsvImportProfile.pm @@ -4,21 +4,19 @@ package SL::DB::CsvImportProfile; use strict; -use base qw(SL::DB::Object); +use parent 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' ], +__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; ;