Vorgangsbezeichnung in Dialogbuchung: Speichern und Laden
[kivitendo-erp.git] / SL / DB / MetaSetup / CsvImportProfileSetting.pm
index d1822a3..b628496 100644 (file)
@@ -4,28 +4,26 @@ package SL::DB::CsvImportProfileSetting;
 
 use strict;
 
-use base qw(SL::DB::Object);
+use parent qw(SL::DB::Object);
 
-__PACKAGE__->meta->setup(
-  table   => 'csv_import_profile_settings',
+__PACKAGE__->meta->table('csv_import_profile_settings');
 
-  columns => [
-    id                    => { type => 'serial', not_null => 1 },
-    csv_import_profile_id => { type => 'integer', not_null => 1 },
-    key                   => { type => 'text', not_null => 1 },
-    value                 => { type => 'text' },
-  ],
+__PACKAGE__->meta->columns(
+  csv_import_profile_id => { type => 'integer', not_null => 1 },
+  id                    => { type => 'serial', not_null => 1 },
+  key                   => { type => 'text', not_null => 1 },
+  value                 => { type => 'text' },
+);
 
-  primary_key_columns => [ 'id' ],
+__PACKAGE__->meta->primary_key_columns([ 'id' ]);
 
-  unique_key => [ 'csv_import_profile_id', 'key' ],
+__PACKAGE__->meta->unique_keys([ 'csv_import_profile_id', 'key' ]);
 
-  foreign_keys => [
-    csv_import_profile => {
-      class       => 'SL::DB::CsvImportProfile',
-      key_columns => { csv_import_profile_id => 'id' },
-    },
-  ],
+__PACKAGE__->meta->foreign_keys(
+  csv_import_profile => {
+    class       => 'SL::DB::CsvImportProfile',
+    key_columns => { csv_import_profile_id => 'id' },
+  },
 );
 
 1;