From 7142d1dca84e06e95b973f8665d57e894d18ca27 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 14 Mar 2013 15:28:38 -0300 Subject: [PATCH] Bug 7440 - Remove NoZebra and QueryRemoveStopWords sysprefs MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Sponsored-by: Universidad Nacional de Córdoba Signed-off-by: Julian Maurice Signed-off-by: Paul Poulain Signed-off-by: Jared Camins-Esakov --- installer/data/mysql/updatedatabase.pl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index fdca979ba4..04a799d9fc 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -6538,6 +6538,18 @@ if ( CheckVersion($DBversion) ) { SetVersion ($DBversion); } +$DBversion = "XXX"; +if ( CheckVersion($DBversion) ) { + $dbh->do(q{ + DELETE FROM systempreferences WHERE variable='NoZebra' + }); + $dbh->do(q{ + DELETE FROM systempreferences WHERE variable='QueryRemoveStopwords' + }); + print "Upgrade to $DBversion done (Remove deprecated NoZebra and QueryRemoveStopwords sysprefs)\n"; + SetVersion($DBversion); +} + =head1 FUNCTIONS =head2 TableExists($table) -- 2.39.5