MetaSetup neu generiert
[kivitendo-erp.git] / SL / DB / MetaSetup / BackgroundJob.pm
index c3b8212..0716443 100644 (file)
@@ -6,22 +6,22 @@ use strict;
 
 use base qw(SL::DB::Object);
 
-__PACKAGE__->meta->setup(
-  table   => 'background_jobs',
+__PACKAGE__->meta->table('background_jobs');
 
-  columns => [
-    id           => { type => 'serial', not_null => 1 },
-    type         => { type => 'varchar', length => 255 },
-    package_name => { type => 'varchar', length => 255 },
-    last_run_at  => { type => 'timestamp' },
-    next_run_at  => { type => 'timestamp' },
-    data         => { type => 'text' },
-    active       => { type => 'boolean' },
-    cron_spec    => { type => 'varchar', length => 255 },
-  ],
-
-  primary_key_columns => [ 'id' ],
+__PACKAGE__->meta->columns(
+  id           => { type => 'serial', not_null => 1 },
+  type         => { type => 'varchar', length => 255 },
+  package_name => { type => 'varchar', length => 255 },
+  last_run_at  => { type => 'timestamp' },
+  next_run_at  => { type => 'timestamp' },
+  data         => { type => 'text' },
+  active       => { type => 'boolean' },
+  cron_spec    => { type => 'varchar', length => 255 },
 );
 
+__PACKAGE__->meta->primary_key_columns([ 'id' ]);
+
+# __PACKAGE__->meta->initialize;
+
 1;
 ;