MetaSetup neu generiert
[kivitendo-erp.git] / SL / DB / MetaSetup / MakeModel.pm
index c6499a5..7d724e8 100644 (file)
@@ -6,25 +6,25 @@ use strict;
 
 use base qw(SL::DB::Object);
 
-__PACKAGE__->meta->setup(
-  table   => 'makemodel',
-
-  columns => [
-    parts_id   => { type => 'integer' },
-    model      => { type => 'text' },
-    itime      => { type => 'timestamp', default => 'now()' },
-    mtime      => { type => 'timestamp' },
-    lastcost   => { type => 'numeric', precision => 5, scale => 15 },
-    lastupdate => { type => 'date' },
-    sortorder  => { type => 'integer' },
-    make       => { type => 'integer' },
-    id         => { type => 'serial', not_null => 1 },
-  ],
-
-  primary_key_columns => [ 'id' ],
-
-  allow_inline_column_values => 1,
+__PACKAGE__->meta->table('makemodel');
+
+__PACKAGE__->meta->columns(
+  parts_id   => { type => 'integer' },
+  model      => { type => 'text' },
+  itime      => { type => 'timestamp', default => 'now()' },
+  mtime      => { type => 'timestamp' },
+  make       => { type => 'integer' },
+  id         => { type => 'serial', not_null => 1 },
+  lastcost   => { type => 'numeric', precision => 5, scale => 15 },
+  lastupdate => { type => 'date' },
+  sortorder  => { type => 'integer' },
 );
 
+__PACKAGE__->meta->primary_key_columns([ 'id' ]);
+
+__PACKAGE__->meta->allow_inline_column_values(1);
+
+# __PACKAGE__->meta->initialize;
+
 1;
 ;