Bugzilla – Attachment 45856 Details for
Bug 9819
stopwords related code should be removed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9819 - Make updatedatabase.pl remove the 'stopwords' table
Bug-9819---Make-updatedatabasepl-remove-the-stopwo.patch (text/plain), 1.47 KB, created by
Kyle M Hall (khall)
on 2015-12-18 18:01:01 UTC
(
hide
)
Description:
Bug 9819 - Make updatedatabase.pl remove the 'stopwords' table
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-12-18 18:01:01 UTC
Size:
1.47 KB
patch
obsolete
>From 3a595ff70b522c8c1c9e36bbb493d3fa8b8df86f Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Wed, 10 Apr 2013 11:13:10 -0300 >Subject: [PATCH] Bug 9819 - Make updatedatabase.pl remove the 'stopwords' > table >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >To test: >- Apply the patch >- Will be prompted to run the updater >- The 'stopwords' database should be removed > ( test on a mysql prompt with > > SHOW TABLES LIKE 'stopwords'; > and should get no results) > >Sponsored-by: Universidad Nacional de Córdoba >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> >--- > installer/data/mysql/updatedatabase.pl | 9 +++++++++ > 1 file changed, 9 insertions(+) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index f8ab41e..4d52222 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -11390,6 +11390,15 @@ if ( CheckVersion($DBversion) ) { > SetVersion ($DBversion); > } > >+$DBversion = "XXX"; >+if ( CheckVersion($DBversion) ) { >+ $dbh->do(q{ >+ DROP TABLE IF EXISTS `stopwords`; >+ }); >+ print "Upgrade to $DBversion done (Removed obsolete 'stopwords' table)\n"; >+ SetVersion($DBversion); >+} >+ > # DEVELOPER PROCESS, search for anything to execute in the db_update directory > # SEE bug 13068 > # if there is anything in the atomicupdate, read and execute it. >-- >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 9819
:
17341
|
17342
|
17343
|
17558
|
17559
|
17560
|
17587
|
45685
|
45686
|
45687
|
45688
|
45689
|
45791
|
45792
|
45793
|
45794
|
45795
|
45854
|
45855
| 45856 |
45857
|
45858
|
46092