Bug 23092: DBRev 20.06.00.016
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 24 Jul 2020 12:10:52 +0000 (14:10 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 24 Jul 2020 12:11:51 +0000 (14:11 +0200)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

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

diff --git a/Koha.pm b/Koha.pm
index b92e77a..c761cbb 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 = "20.06.00.015";
+$VERSION = "20.06.00.016";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_23092.perl b/installer/data/mysql/atomicupdate/bug_23092.perl
deleted file mode 100644 (file)
index a704bab..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-$DBversion = 'XXX'; # will be replaced by the RM
-if( CheckVersion( $DBversion ) ) {
-
-    unless ( column_exists('branchtransfers', 'daterequested') ) {
-        $dbh->do(
-            qq{
-                ALTER TABLE branchtransfers
-                ADD
-                  `daterequested` timestamp NOT NULL default CURRENT_TIMESTAMP
-                AFTER
-                  `itemnumber`
-              }
-        );
-    }
-
-    SetVersion( $DBversion );
-    print "Upgrade to $DBversion done (Bug 23092 - Add 'daterequested' field to transfers table)\n";
-}
index 6e52d23..12d810b 100755 (executable)
@@ -22474,6 +22474,23 @@ if( CheckVersion( $DBversion ) ) {
     NewVersion( $DBversion, 23797, "Convert OpacLoginInstructions system preference to news block" );
 }
 
+$DBversion = '20.06.00.016';
+if( CheckVersion( $DBversion ) ) {
+
+    unless ( column_exists('branchtransfers', 'daterequested') ) {
+        $dbh->do(
+            qq{
+                ALTER TABLE branchtransfers
+                ADD
+                  `daterequested` timestamp NOT NULL default CURRENT_TIMESTAMP
+                AFTER
+                  `itemnumber`
+              }
+        );
+    }
+
+    NewVersion( $DBversion, 23092, "Add 'daterequested' field to transfers table" );
+}
 
 # SEE bug 13068
 # if there is anything in the atomicupdate, read and execute it.