]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/MetaSetup/CsvImportProfile.pm
MetaSetup neu generiert
[mfinanz.git] / SL / DB / MetaSetup / CsvImportProfile.pm
index e01fe28f1b6d3954d7214c4b27255d52802b7f68..a435f80000d6666a104f15c8ec9008ed6dc697cb 100644 (file)
@@ -6,19 +6,19 @@ 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' ],
+__PACKAGE__->meta->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' },
 );
 
+__PACKAGE__->meta->primary_key_columns([ 'id' ]);
+
+# __PACKAGE__->meta->initialize;
+
 1;
 ;