X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FBackgroundJob.pm;h=6b19131094665263dc6d06b415ce9fdf0943d2c0;hb=09a63fcb49aeac832a52682a01286fa36b9b65a5;hp=c3b8212c9386b1cca40478989134289df5265726;hpb=f9c7abfae65b79945beb7e9260942bc94876248a;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/BackgroundJob.pm b/SL/DB/MetaSetup/BackgroundJob.pm index c3b8212c9..6b1913109 100644 --- a/SL/DB/MetaSetup/BackgroundJob.pm +++ b/SL/DB/MetaSetup/BackgroundJob.pm @@ -6,22 +6,20 @@ 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( + active => { type => 'boolean' }, + cron_spec => { type => 'varchar', length => 255 }, + data => { type => 'text' }, + id => { type => 'serial', not_null => 1 }, + last_run_at => { type => 'timestamp' }, + next_run_at => { type => 'timestamp' }, + package_name => { type => 'varchar', length => 255 }, + type => { type => 'varchar', length => 255 }, ); +__PACKAGE__->meta->primary_key_columns([ 'id' ]); + 1; ;