MetaSetup neu generiert
[kivitendo-erp.git] / SL / DB / MetaSetup / RecordLink.pm
index 4059be8..7bbd67a 100644 (file)
@@ -6,22 +6,22 @@ use strict;
 
 use base qw(SL::DB::Object);
 
-__PACKAGE__->meta->setup(
-  table   => 'record_links',
+__PACKAGE__->meta->table('record_links');
 
-  columns => [
-    from_table => { type => 'varchar', length => 50, not_null => 1 },
-    from_id    => { type => 'integer', not_null => 1 },
-    to_table   => { type => 'varchar', length => 50, not_null => 1 },
-    to_id      => { type => 'integer', not_null => 1 },
-    itime      => { type => 'timestamp', default => 'now()' },
-    id         => { type => 'serial', not_null => 1 },
-  ],
+__PACKAGE__->meta->columns(
+  from_table => { type => 'varchar', length => 50, not_null => 1 },
+  from_id    => { type => 'integer', not_null => 1 },
+  to_table   => { type => 'varchar', length => 50, not_null => 1 },
+  to_id      => { type => 'integer', not_null => 1 },
+  itime      => { type => 'timestamp', default => 'now()' },
+  id         => { type => 'serial', not_null => 1 },
+);
 
-  primary_key_columns => [ 'id' ],
+__PACKAGE__->meta->primary_key_columns([ 'id' ]);
 
-  allow_inline_column_values => 1,
-);
+__PACKAGE__->meta->allow_inline_column_values(1);
+
+# __PACKAGE__->meta->initialize;
 
 1;
 ;