Bugzilla – Attachment 17343 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.22 KB, created by
Tomás Cohen Arazi (tcohen)
on 2013-04-10 14:35:12 UTC
(
hide
)
Description:
Bug 9819 - Make updatedatabase.pl remove the 'stopwords' table
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2013-04-10 14:35:12 UTC
Size:
1.22 KB
patch
obsolete
>From 8d6985f3827ef4f27aa23038d8b349fffb6ca6bf 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 >--- > installer/data/mysql/updatedatabase.pl | 8 ++++++++ > 1 file changed, 8 insertions(+) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 7c97a51..d24889a 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -6771,6 +6771,14 @@ 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); >+} > > =head1 FUNCTIONS > >-- >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