MetaSetup neu generiert
[kivitendo-erp.git] / SL / DB / MetaSetup / CustomVariableValidity.pm
index 25876d7..3757ddc 100644 (file)
@@ -6,27 +6,27 @@ use strict;
 
 use base qw(SL::DB::Object);
 
-__PACKAGE__->meta->setup(
-  table   => 'custom_variables_validity',
-
-  columns => [
-    id        => { type => 'integer', not_null => 1, sequence => 'id' },
-    config_id => { type => 'integer', not_null => 1 },
-    trans_id  => { type => 'integer', not_null => 1 },
-    itime     => { type => 'timestamp', default => 'now()' },
-  ],
-
-  primary_key_columns => [ 'id' ],
-
-  allow_inline_column_values => 1,
-
-  foreign_keys => [
-    config => {
-      class       => 'SL::DB::CustomVariableConfig',
-      key_columns => { config_id => 'id' },
-    },
-  ],
+__PACKAGE__->meta->table('custom_variables_validity');
+
+__PACKAGE__->meta->columns(
+  id        => { type => 'integer', not_null => 1, sequence => 'id' },
+  config_id => { type => 'integer', not_null => 1 },
+  trans_id  => { type => 'integer', not_null => 1 },
+  itime     => { type => 'timestamp', default => 'now()' },
+);
+
+__PACKAGE__->meta->primary_key_columns([ 'id' ]);
+
+__PACKAGE__->meta->allow_inline_column_values(1);
+
+__PACKAGE__->meta->foreign_keys(
+  config => {
+    class       => 'SL::DB::CustomVariableConfig',
+    key_columns => { config_id => 'id' },
+  },
 );
 
+# __PACKAGE__->meta->initialize;
+
 1;
 ;