Bug 25184: RMaint follow-up: DBRev 19.05.11.002: Replay of 19.05.10.003 upgrade to...
authorVictor Grousset/tuxayo <victor@tuxayo.net>
Thu, 11 Jun 2020 22:42:47 +0000 (00:42 +0200)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Thu, 11 Jun 2020 23:56:35 +0000 (01:56 +0200)
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 <victor@tuxayo.net>

Koha.pm
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index 24ca713..b35dfde 100644 (file)
--- 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;
index 7cebab2..5f615c7 100755 (executable)
@@ -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.