Bug 15108 - DBRev 16.12.00.031
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 8 May 2017 13:29:38 +0000 (09:29 -0400)
committerKyle M Hall <kyle@bywatersolutions.com>
Mon, 8 May 2017 13:29:38 +0000 (09:29 -0400)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Koha.pm
installer/data/mysql/atomicupdate/Bug15108-OAI-PMH_provider_improvements.perl [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index 9d4e4e4..87e6f9f 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 = "16.12.00.030";
+$VERSION = "16.12.00.031";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/Bug15108-OAI-PMH_provider_improvements.perl b/installer/data/mysql/atomicupdate/Bug15108-OAI-PMH_provider_improvements.perl
deleted file mode 100644 (file)
index 4cd702c..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-$DBversion = 'XXX';
-if( CheckVersion( $DBversion ) ) {
-    if ( !index_exists( 'biblioitems', 'timestamp' ) ) {
-        $dbh->do("ALTER TABLE biblioitems ADD KEY `timestamp` (`timestamp`);");
-    }
-    if ( !index_exists( 'deletedbiblioitems', 'timestamp' ) ) {
-        $dbh->do("ALTER TABLE deletedbiblioitems ADD KEY `timestamp` (`timestamp`);");
-    }
-    if ( !index_exists( 'items', 'timestamp' ) ) {
-        $dbh->do("ALTER TABLE items ADD KEY `timestamp` (`timestamp`);");
-    }
-    if ( !index_exists( 'deleteditems', 'timestamp' ) ) {
-        $dbh->do("ALTER TABLE deleteditems ADD KEY `timestamp` (`timestamp`);");
-    }
-
-    SetVersion( $DBversion );
-    print "Upgrade to $DBversion done (Bug 15108: OAI-PMH provider improvements)\n";
-}
index 74d5f88..23592e1 100755 (executable)
@@ -14332,6 +14332,25 @@ if( CheckVersion( $DBversion ) ) {
     print "Upgrade to $DBversion done (Bug 16344 - Add a circ rule to limit the auto renewals given a specific date)\n";
 }
 
+$DBversion = '16.12.00.031';
+if( CheckVersion( $DBversion ) ) {
+    if ( !index_exists( 'biblioitems', 'timestamp' ) ) {
+        $dbh->do("ALTER TABLE biblioitems ADD KEY `timestamp` (`timestamp`);");
+    }
+    if ( !index_exists( 'deletedbiblioitems', 'timestamp' ) ) {
+        $dbh->do("ALTER TABLE deletedbiblioitems ADD KEY `timestamp` (`timestamp`);");
+    }
+    if ( !index_exists( 'items', 'timestamp' ) ) {
+        $dbh->do("ALTER TABLE items ADD KEY `timestamp` (`timestamp`);");
+    }
+    if ( !index_exists( 'deleteditems', 'timestamp' ) ) {
+        $dbh->do("ALTER TABLE deleteditems ADD KEY `timestamp` (`timestamp`);");
+    }
+
+    SetVersion( $DBversion );
+    print "Upgrade to $DBversion done (Bug 15108: OAI-PMH provider improvements)\n";
+}
+
 # DEVELOPER PROCESS, search for anything to execute in the db_update directory
 # SEE bug 13068
 # if there is anything in the atomicupdate, read and execute it.