Sprache um Attribut ungültig erweitert
[kivitendo-erp.git] / SL / DB / MetaSetup / CsvImportReportRow.pm
index 5bc6337..eac145d 100644 (file)
@@ -4,27 +4,25 @@ package SL::DB::CsvImportReportRow;
 
 use strict;
 
-use base qw(SL::DB::Object);
+use parent qw(SL::DB::Object);
 
-__PACKAGE__->meta->setup(
-  table   => 'csv_import_report_rows',
+__PACKAGE__->meta->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' },
-  ],
+__PACKAGE__->meta->columns(
+  col                  => { type => 'integer', not_null => 1 },
+  csv_import_report_id => { type => 'integer', not_null => 1 },
+  id                   => { type => 'serial', not_null => 1 },
+  row                  => { type => 'integer', not_null => 1 },
+  value                => { type => 'text' },
+);
 
-  primary_key_columns => [ 'id' ],
+__PACKAGE__->meta->primary_key_columns([ 'id' ]);
 
-  foreign_keys => [
-    csv_import_report => {
-      class       => 'SL::DB::CsvImportReport',
-      key_columns => { csv_import_report_id => 'id' },
-    },
-  ],
+__PACKAGE__->meta->foreign_keys(
+  csv_import_report => {
+    class       => 'SL::DB::CsvImportReport',
+    key_columns => { csv_import_report_id => 'id' },
+  },
 );
 
 1;