X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FBackgroundJobHistory.pm;h=24ce17ff1c4c0ec2305132f3a5f2f5046a145b33;hb=09a63fcb49aeac832a52682a01286fa36b9b65a5;hp=bd78a7d504b765e0920feff9fe7e8e717d2e7af3;hpb=0b2ca0abb53db0d372bcc51e8093abb30f2aeea6;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/BackgroundJobHistory.pm b/SL/DB/MetaSetup/BackgroundJobHistory.pm index bd78a7d50..24ce17ff1 100644 --- a/SL/DB/MetaSetup/BackgroundJobHistory.pm +++ b/SL/DB/MetaSetup/BackgroundJobHistory.pm @@ -6,21 +6,19 @@ use strict; use base qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'background_job_histories', +__PACKAGE__->meta->table('background_job_histories'); - columns => [ - id => { type => 'serial', not_null => 1 }, - package_name => { type => 'varchar', length => 255 }, - run_at => { type => 'timestamp' }, - status => { type => 'varchar', length => 255 }, - result => { type => 'text' }, - error => { type => 'text', alias => 'error_col' }, - data => { type => 'text' }, - ], - - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->columns( + data => { type => 'text' }, + error => { type => 'text', alias => 'error_col' }, + id => { type => 'serial', not_null => 1 }, + package_name => { type => 'varchar', length => 255 }, + result => { type => 'text' }, + run_at => { type => 'timestamp' }, + status => { type => 'varchar', length => 255 }, ); +__PACKAGE__->meta->primary_key_columns([ 'id' ]); + 1; ;