Bug 21288: DBRev 18.05.03.002

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 11e513f83f)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Nick Clemens 2018-09-15 21:44:05 +00:00 committed by Martin Renvoize
parent 40536fedd3
commit 44ce16d006
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
3 changed files with 12 additions and 10 deletions

View File

@ -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.05.03.001";
$VERSION = "18.05.03.002";
sub version {
return $VERSION;

View File

@ -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";
}

View File

@ -16155,6 +16155,17 @@ if( CheckVersion( $DBversion ) ) {
print "Upgrade to $DBversion done (Bug 21235: Remove table services_throttle)\n";
}
$DBversion = '18.05.03.002';
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.