Bug 25184: DBRev 19.12.00.087
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 11 May 2020 07:57:47 +0000 (08:57 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 11 May 2020 07:57:47 +0000 (08:57 +0100)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Koha.pm
installer/data/mysql/atomicupdate/bug_25184.perl [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index cafbd96..3847fe4 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.12.00.086";
+$VERSION = "19.12.00.087";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_25184.perl b/installer/data/mysql/atomicupdate/bug_25184.perl
deleted file mode 100644 (file)
index af823f4..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-$DBversion = 'XXX'; # will be replaced by the RM
-if( CheckVersion( $DBversion ) ) {
-    # $dbh->do( "ALTER TABLE biblio ADD COLUMN badtaste int" );
-    $dbh->do(q{
-        INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
-        ('TrapHoldsOnOrder','1',NULL,'If enabled, Koha will trap holds for on order items ( notforloan < 0 )','YesNo't c)
-    });
-
-    # Always end with this (adjust the bug info)
-    NewVersion( $DBversion, 25184, "Items with a negative notforloan status should not be captured for holds");
-}
index 6dfc067..0e75d2e 100755 (executable)
@@ -22047,6 +22047,16 @@ if( CheckVersion( $DBversion ) ) {
     NewVersion( $DBversion, 24163, "Define a default CSV profile for late orders");
 }
 
+$DBversion = '19.12.00.087';
+if( CheckVersion( $DBversion ) ) {
+    $dbh->do(q{
+        INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
+        ('TrapHoldsOnOrder','1',NULL,'If enabled, Koha will trap holds for on order items ( notforloan < 0 )','YesNo't c)
+    });
+
+    NewVersion( $DBversion, 25184, "Items with a negative notforloan status should not be captured for holds");
+}
+
 # SEE bug 13068
 # if there is anything in the atomicupdate, read and execute it.
 my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/';