X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/67643d0386e7ad051009af639cada8a5ad60d1ea..64b49f6c38c2c5763f21df00c7b4580ff70893be:/SL/DB/MetaSetup/CsvImportReportRow.pm?ds=sidebyside diff --git a/SL/DB/MetaSetup/CsvImportReportRow.pm b/SL/DB/MetaSetup/CsvImportReportRow.pm index 5bc633722..9814a64ed 100644 --- a/SL/DB/MetaSetup/CsvImportReportRow.pm +++ b/SL/DB/MetaSetup/CsvImportReportRow.pm @@ -6,26 +6,26 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'csv_import_report_rows', - - columns => [ - id => { type => 'serial', not_null => 1 }, - csv_import_report_id => { type => 'integer', not_null => 1 }, - col => { type => 'integer', not_null => 1 }, - row => { type => 'integer', not_null => 1 }, - value => { type => 'text' }, - ], - - primary_key_columns => [ 'id' ], - - foreign_keys => [ - csv_import_report => { - class => 'SL::DB::CsvImportReport', - key_columns => { csv_import_report_id => 'id' }, - }, - ], +__PACKAGE__->meta->table('csv_import_report_rows'); + +__PACKAGE__->meta->columns( + id => { type => 'serial', not_null => 1 }, + csv_import_report_id => { type => 'integer', not_null => 1 }, + col => { type => 'integer', not_null => 1 }, + row => { type => 'integer', not_null => 1 }, + value => { type => 'text' }, ); +__PACKAGE__->meta->primary_key_columns([ 'id' ]); + +__PACKAGE__->meta->foreign_keys( + csv_import_report => { + class => 'SL::DB::CsvImportReport', + key_columns => { csv_import_report_id => 'id' }, + }, +); + +# __PACKAGE__->meta->initialize; + 1; ;