MetaSetup neu generiert
[kivitendo-erp.git] / SL / DB / MetaSetup / CsvImportReport.pm
index 4b61a2a..041825d 100644 (file)
@@ -6,27 +6,27 @@ use strict;
 
 use base qw(SL::DB::Object);
 
-__PACKAGE__->meta->setup(
-  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' },
-  ],
-
-  primary_key_columns => [ 'id' ],
-
-  foreign_keys => [
-    profile => {
-      class       => 'SL::DB::CsvImportProfile',
-      key_columns => { profile_id => 'id' },
-    },
-  ],
+__PACKAGE__->meta->table('csv_import_reports');
+
+__PACKAGE__->meta->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->primary_key_columns([ 'id' ]);
+
+__PACKAGE__->meta->foreign_keys(
+  profile => {
+    class       => 'SL::DB::CsvImportProfile',
+    key_columns => { profile_id => 'id' },
+  },
+);
+
+# __PACKAGE__->meta->initialize;
+
 1;
 ;