From 0b1809bb9386b839d8dceae84f751f7ff8c0ad01 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 28 Mar 2019 18:16:33 +0000 Subject: [PATCH] Bug 19722: DBRev 18.12.00.035 Signed-off-by: Nick Clemens --- Koha.pm | 2 +- .../bug_19722_add_MaxItemsToDisplayForBatchMod_pref.perl | 8 -------- installer/data/mysql/updatedatabase.pl | 9 +++++++++ 3 files changed, 10 insertions(+), 9 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_19722_add_MaxItemsToDisplayForBatchMod_pref.perl diff --git a/Koha.pm b/Koha.pm index b19bfc9749..65b1e353ab 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 = "18.12.00.034"; +$VERSION = "18.12.00.035"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_19722_add_MaxItemsToDisplayForBatchMod_pref.perl b/installer/data/mysql/atomicupdate/bug_19722_add_MaxItemsToDisplayForBatchMod_pref.perl deleted file mode 100644 index 2e056ce47e..0000000000 --- a/installer/data/mysql/atomicupdate/bug_19722_add_MaxItemsToDisplayForBatchMod_pref.perl +++ /dev/null @@ -1,8 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - $dbh->do( "INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) - VALUES ('MaxItemsToDisplayForBatchMod','1000',NULL,'Display up to a given number of items in a single item modification batch.','Integer')" - ); - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 19722 - Add a MaxItemsToDisplayForBatchMod preference)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 58c0ab2857..dc509d5811 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -17827,6 +17827,15 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 22516 - Drop deprecated accountlines.lastincrement field)\n"; } +$DBversion = '18.12.00.035'; +if( CheckVersion( $DBversion ) ) { + $dbh->do( "INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) + VALUES ('MaxItemsToDisplayForBatchMod','1000',NULL,'Display up to a given number of items in a single item modification batch.','Integer')" + ); + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 19722 - Add a MaxItemsToDisplayForBatchMod preference)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5