Bugzilla – Attachment 56489 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.49 KB, created by
Nicolas Legrand
on 2016-10-14 09:18:50 UTC
(
hide
)
Description:
Bug 8835: Drop issn_idx for completeness
Filename:
MIME Type:
Creator:
Nicolas Legrand
Created:
2016-10-14 09:18:50 UTC
Size:
1.49 KB
patch
obsolete
>From fa92912008af04acfe974f482d07526695b2e185 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 > >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. > >Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr> >--- > 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 >-- >2.1.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