From e90917217de2499bc68a3a32fdd4c6c678f78538 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 14 May 2015 12:13:47 -0300 Subject: [PATCH] Bug 14132: DBRev 3.19.00.041 Signed-off-by: Tomas Cohen Arazi --- Koha.pm | 2 +- .../bug_14132-add_keys_suggestions.sql | 3 --- installer/data/mysql/updatedatabase.pl | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 4 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_14132-add_keys_suggestions.sql diff --git a/Koha.pm b/Koha.pm index 05c027ef39..f60a5b4d7e 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 = "3.19.00.040"; +$VERSION = "3.19.00.041"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_14132-add_keys_suggestions.sql b/installer/data/mysql/atomicupdate/bug_14132-add_keys_suggestions.sql deleted file mode 100644 index cd55763c05..0000000000 --- a/installer/data/mysql/atomicupdate/bug_14132-add_keys_suggestions.sql +++ /dev/null @@ -1,3 +0,0 @@ -ALTER IGNORE TABLE suggestions ADD KEY status (STATUS); -ALTER IGNORE TABLE suggestions ADD KEY biblionumber (biblionumber); -ALTER IGNORE TABLE suggestions ADD KEY branchcode (branchcode); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index ebba7da6d6..13c03d5ada 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -10410,6 +10410,21 @@ if ( CheckVersion($DBversion) ) { SetVersion ($DBversion); } +$DBversion = "3.19.00.041"; +if ( CheckVersion($DBversion) ) { + $dbh->do(q| + ALTER IGNORE TABLE suggestions ADD KEY status (STATUS) + |); + $dbh->do(q| + ALTER IGNORE TABLE suggestions ADD KEY biblionumber (biblionumber) + |); + $dbh->do(q| + ALTER IGNORE TABLE suggestions ADD KEY branchcode (branchcode) + |); + print "Upgrade to $DBversion done (Bug 14132: suggestions table is missing indexes)\n"; + SetVersion ($DBversion); +} + # 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