From 1f16d490f12da637c26a206749e64c0ac3e72a6a Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Fri, 25 Oct 2024 09:05:04 +0000 Subject: [PATCH] Bug 28833: DBRev 24.06.00.044 Signed-off-by: Katrin Fischer --- Koha.pm | 2 +- .../data/mysql/atomicupdate/bug_28833.perl | 9 --------- installer/data/mysql/db_revs/240600044.pl | 19 +++++++++++++++++++ 3 files changed, 20 insertions(+), 10 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_28833.perl create mode 100755 installer/data/mysql/db_revs/240600044.pl diff --git a/Koha.pm b/Koha.pm index df78fcae4c..439fb0be50 100644 --- a/Koha.pm +++ b/Koha.pm @@ -29,7 +29,7 @@ use vars qw{ $VERSION }; # - #4 : the developer version. The 4th number is the database subversion. # used by developers when the database changes. updatedatabase take care of the changes itself # and is automatically called by Auth.pm when needed. -$VERSION = "24.06.00.043"; +$VERSION = "24.06.00.044"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_28833.perl b/installer/data/mysql/atomicupdate/bug_28833.perl deleted file mode 100644 index 1d0c1adcca..0000000000 --- a/installer/data/mysql/atomicupdate/bug_28833.perl +++ /dev/null @@ -1,9 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - $dbh->do(q{ - INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES - ('HoldsQueueParallelLoopsCount', '1', NULL, 'Number of parallel loops to use when running the holds queue builder', 'Integer'); - }); - - NewVersion( $DBversion, 28833, "Speed up holds queue builder via parallel processing"); -} diff --git a/installer/data/mysql/db_revs/240600044.pl b/installer/data/mysql/db_revs/240600044.pl new file mode 100755 index 0000000000..fcaa1e4cdc --- /dev/null +++ b/installer/data/mysql/db_revs/240600044.pl @@ -0,0 +1,19 @@ +use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_failure say_success say_info); + +return { + bug_number => '28833', + description => 'Speed up holds queue builder via parallel processing', + up => sub { + my ($args) = @_; + my ( $dbh, $out ) = @{$args}{qw(dbh out)}; + + $dbh->do(q{ + INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES + ('HoldsQueueParallelLoopsCount', '1', NULL, 'Number of parallel loops to use when running the holds queue builder', 'Integer'); + }); + + say_success( $out, "Added new system preference 'HoldsQueueParallelLoopsCount'"); + + }, +}; -- 2.39.5