Bugzilla – Attachment 56278 Details for
Bug 8835
Two indexes on biblioitems.issn
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8835: Drop issn_idx for completeness
Bug-8835-Drop-issnidx-for-completeness.patch (text/plain), 1.48 KB, created by
Marcel de Rooy
on 2016-10-12 13:37:17 UTC
(
hide
)
Description:
Bug 8835: Drop issn_idx for completeness
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2016-10-12 13:37:17 UTC
Size:
1.48 KB
patch
obsolete
>From 8afce5e01bccae43304eb2fc936d3a012d25c817 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Wed, 12 Oct 2016 15:29:01 +0200 >Subject: [PATCH] Bug 8835: Drop issn_idx for completeness >Content-Type: text/plain; charset=utf-8 > >When dbrev 3.15.00.049 failed, the still existing issn_idx must have >been the cause. >This patch only adjusts the old db rev. >Still thinking if we also need a new db rev to fix isbn and issn for >those installs where 3.15.00.049 failed too. (In that case the fields >may not have been changed to mediumtext and no indexes were added.) > >Test plan: >Ideally, run an upgrade from something older than 3.15.00.49. >But running the added sql command from the command line might convince >you too. >--- > installer/data/mysql/updatedatabase.pl | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index cda1b02..5ec0db0 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -8476,6 +8476,7 @@ $DBversion = "3.15.00.049"; > if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { > $dbh->do("ALTER TABLE biblioitems DROP INDEX isbn"); > $dbh->do("ALTER TABLE biblioitems DROP INDEX issn"); >+ $dbh->do("ALTER TABLE biblioitems DROP INDEX issn_idx"); > $dbh->do("ALTER TABLE biblioitems > CHANGE isbn isbn MEDIUMTEXT NULL DEFAULT NULL, > CHANGE issn issn MEDIUMTEXT NULL DEFAULT NULL >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8835
:
56278
|
56316
|
56489
|
56490
|
57706
|
57707