From 11e513f83f0c5fdd0d47de14b7c09635faf58ae4 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Sat, 15 Sep 2018 21:44:05 +0000 Subject: [PATCH] Bug 21288: DBRev 18.06.00.029 Signed-off-by: Nick Clemens --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_21288.perl | 9 --------- installer/data/mysql/updatedatabase.pl | 11 +++++++++++ 3 files changed, 12 insertions(+), 10 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_21288.perl diff --git a/Koha.pm b/Koha.pm index bc85f79936..b2f74a5928 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 = "18.06.00.028"; +$VERSION = "18.06.00.029"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_21288.perl b/installer/data/mysql/atomicupdate/bug_21288.perl deleted file mode 100644 index a4a102a64e..0000000000 --- a/installer/data/mysql/atomicupdate/bug_21288.perl +++ /dev/null @@ -1,9 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - $dbh->do(q{ - CREATE INDEX `by_biblionumber` ON `subscription` (`biblionumber`) - }); - - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 21288: Slowness in acquisition caused by GetInvoices\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 6d07b387cb..13592c9c04 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -16396,6 +16396,17 @@ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanat print "Upgrade to $DBversion done (Bug 19469 - Add ability to split view of holds view on record by pickup library and/or itemtype)\n"; } +$DBversion = '18.06.00.029'; +if( CheckVersion( $DBversion ) ) { + unless ( index_exists( 'subscription', 'by_biblionumber' ) ) { + $dbh->do(q{ + CREATE INDEX `by_biblionumber` ON `subscription` (`biblionumber`) + }); + } + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 21288: Slowness in acquisition caused by GetInvoices\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.2