From ffa361c241118d0ee58b14ae749e6ee8f3284349 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 8 May 2017 09:29:38 -0400 Subject: [PATCH] Bug 15108 - DBRev 16.12.00.031 Signed-off-by: Kyle M Hall --- Koha.pm | 2 +- ...ug15108-OAI-PMH_provider_improvements.perl | 18 ------------------ installer/data/mysql/updatedatabase.pl | 19 +++++++++++++++++++ 3 files changed, 20 insertions(+), 19 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/Bug15108-OAI-PMH_provider_improvements.perl diff --git a/Koha.pm b/Koha.pm index 9d4e4e4e41..87e6f9f969 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 = "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 index 4cd702c90d..0000000000 --- a/installer/data/mysql/atomicupdate/Bug15108-OAI-PMH_provider_improvements.perl +++ /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"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 74d5f88ae5..23592e1103 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -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. -- 2.39.5