Restliche RDBO Updates für Projekte
[kivitendo-erp.git] / SL / DB / MetaSetup / CsvImportProfile.pm
index fb0d3da..7a163b2 100644 (file)
@@ -6,21 +6,17 @@ use strict;
 
 use base qw(SL::DB::Object);
 
-__PACKAGE__->meta->setup(
-  table   => 'csv_import_profiles',
+__PACKAGE__->meta->table('csv_import_profiles');
 
-  columns => [
-    id         => { type => 'serial', not_null => 1 },
-    name       => { type => 'text', not_null => 1 },
-    type       => { type => 'varchar', length => 20, not_null => 1 },
-    is_default => { type => 'boolean', default => 'false' },
-    login      => { type => 'text' },
-  ],
-
-  primary_key_columns => [ 'id' ],
-
-  unique_key => [ 'name' ],
+__PACKAGE__->meta->columns(
+  id         => { type => 'serial', not_null => 1 },
+  is_default => { type => 'boolean', default => 'false' },
+  login      => { type => 'text' },
+  name       => { type => 'text', not_null => 1 },
+  type       => { type => 'varchar', length => 20, not_null => 1 },
 );
 
+__PACKAGE__->meta->primary_key_columns([ 'id' ]);
+
 1;
 ;