From fdc0cfa7130ad60ea452a29a125c809ad95c6e0a Mon Sep 17 00:00:00 2001 From: Victor Grousset/tuxayo Date: Fri, 12 Jun 2020 00:42:47 +0200 Subject: [PATCH] Bug 25184: RMaint follow-up: DBRev 19.05.11.002: Replay of 19.05.10.003 upgrade to fix typo It's to ensure the changes are done because it initially had a typo. Because fixing the typo wasn't enough since the typo was released. So people who upgraded to 19.05.11 didn't have the DB changes. Signed-off-by: Victor Grousset/tuxayo --- Koha.pm | 2 +- installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Koha.pm b/Koha.pm index 24ca71384b..b35dfdeffe 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 = "19.05.11.001"; +$VERSION = "19.05.11.002"; sub version { return $VERSION; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 7cebab2f59..5f615c7a8d 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -19084,6 +19084,16 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 24854 - Disable IDreamBooks)\n"; } +$DBversion = '19.05.11.002'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES + ('TrapHoldsOnOrder','1',NULL,'If enabled, Koha will trap holds for on order items ( notforloan < 0 )','YesNo') + }); + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Replay of 19.05.10.003 upgrade - that initially had a typo - to ensure the changes are done)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.11.4.GIT