X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FCsvImportReportStatus.pm;h=f816079bf93b26dd4e7c22e3416da7fbf563fd83;hb=d860b41d55abbf46fa8b94ec445aca3a2bb4e0d6;hp=ef9d30354d6af6256a14989e9b641b6fb1296a8f;hpb=a5a42ed1bf23da4a35b675ce00781fea99df2acd;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/CsvImportReportStatus.pm b/SL/DB/MetaSetup/CsvImportReportStatus.pm index ef9d30354..f816079bf 100644 --- a/SL/DB/MetaSetup/CsvImportReportStatus.pm +++ b/SL/DB/MetaSetup/CsvImportReportStatus.pm @@ -6,18 +6,23 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'csv_import_report_status', +__PACKAGE__->meta->table('csv_import_report_status'); - columns => [ - id => { type => 'serial', not_null => 1 }, - csv_import_report_id => { type => 'integer', not_null => 1 }, - row => { type => 'integer', not_null => 1 }, - type => { type => 'text', not_null => 1 }, - value => { type => 'text' }, - ], +__PACKAGE__->meta->columns( + csv_import_report_id => { type => 'integer', not_null => 1 }, + id => { type => 'serial', not_null => 1 }, + row => { type => 'integer', not_null => 1 }, + type => { type => 'text', not_null => 1 }, + value => { type => 'text' }, +); + +__PACKAGE__->meta->primary_key_columns([ 'id' ]); - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->foreign_keys( + csv_import_report => { + class => 'SL::DB::CsvImportReport', + key_columns => { csv_import_report_id => 'id' }, + }, ); 1;