Bugzilla – Attachment 57706 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.56 KB, created by
Jonathan Druart
on 2016-11-22 12:50:51 UTC
(
hide
)
Description:
Bug 8835: Drop issn_idx for completeness
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-11-22 12:50:51 UTC
Size:
1.56 KB
patch
obsolete
>From f199cb49e5b4fffde250bad3ceca8b4a002e7a54 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> > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > 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 f1989df..9020dd8 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