X-Git-Url: http://wagnertech.de/git?p=kivitendo-erp.git;a=blobdiff_plain;f=sql%2FPg-upgrade2%2Fbackground_job_change_create_periodic_invoices_to_daily.pl;fp=sql%2FPg-upgrade2%2Fbackground_job_change_create_periodic_invoices_to_daily.pl;h=0000000000000000000000000000000000000000;hp=ace35be49a4f1fa4d0dac2bef7c787b44491a49b;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hpb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44 diff --git a/sql/Pg-upgrade2/background_job_change_create_periodic_invoices_to_daily.pl b/sql/Pg-upgrade2/background_job_change_create_periodic_invoices_to_daily.pl deleted file mode 100644 index ace35be49..000000000 --- a/sql/Pg-upgrade2/background_job_change_create_periodic_invoices_to_daily.pl +++ /dev/null @@ -1,23 +0,0 @@ -# @tag: background_job_change_create_periodic_invoices_to_daily -# @description: Hintergrundjob zum Erzeugen periodischer Rechnungen täglich ausführen -# @depends: release_3_0_0 -package SL::DBUpgrade2::background_job_change_create_periodic_invoices_to_daily; - -use strict; -use utf8; - -use parent qw(SL::DBUpgrade2::Base); - -use SL::DB::BackgroundJob; - -sub run { - my ($self) = @_; - - foreach my $job (@{ SL::DB::Manager::BackgroundJob->get_all(where => [ package_name => 'CreatePeriodicInvoices' ]) }) { - $job->update_attributes(cron_spec => '0 3 * * *', next_run_at => undef); - } - - return 1; -} - -1;