X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FDB%2FMetaSetup%2FCsvImportReport.pm;h=3a8433c51dfebaf1fc6ca33993960355ab272841;hb=c96c4bb2c3561b54ef23330fdb1fa1d528b26fff;hp=4b61a2a17a1009d108e4657c6c0ae31b8cd53b24;hpb=63f2cbc1aeb2051fe9cb34ddc0d39801a9db7346;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/CsvImportReport.pm b/SL/DB/MetaSetup/CsvImportReport.pm index 4b61a2a17..3a8433c51 100644 --- a/SL/DB/MetaSetup/CsvImportReport.pm +++ b/SL/DB/MetaSetup/CsvImportReport.pm @@ -6,26 +6,25 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'csv_import_reports', +__PACKAGE__->meta->table('csv_import_reports'); - columns => [ - id => { type => 'serial', not_null => 1 }, - session_id => { type => 'text', not_null => 1 }, - profile_id => { type => 'integer', not_null => 1 }, - type => { type => 'text', not_null => 1 }, - file => { type => 'text', not_null => 1 }, - numrows => { type => 'integer' }, - ], +__PACKAGE__->meta->columns( + file => { type => 'text', not_null => 1 }, + id => { type => 'serial', not_null => 1 }, + numheaders => { type => 'integer', not_null => 1 }, + numrows => { type => 'integer', not_null => 1 }, + profile_id => { type => 'integer', not_null => 1 }, + session_id => { type => 'text', not_null => 1 }, + type => { type => 'text', not_null => 1 }, +); - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->primary_key_columns([ 'id' ]); - foreign_keys => [ - profile => { - class => 'SL::DB::CsvImportProfile', - key_columns => { profile_id => 'id' }, - }, - ], +__PACKAGE__->meta->foreign_keys( + profile => { + class => 'SL::DB::CsvImportProfile', + key_columns => { profile_id => 'id' }, + }, ); 1;