From c1c3f898cd994495e64e884e70ea470d4da960f5 Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Tue, 20 Nov 2012 11:44:18 +0100 Subject: [PATCH] Bug 9107: remove the syspref from the database, as well The syspref has been introduced during 3.9, so only a few libraries should have it, but for consistency it must be removed. Signed-off-by: Jared Camins-Esakov --- 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 518f23a51e..07c0b4387e 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -6055,6 +6055,14 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion ($DBversion); } +$DBversion = "XXX"; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("DELETE FROM systempreferences WHERE variable='DidYouMeanFromAuthorities'"); + print "Upgrade to $DBversion done (Bug 9107: remove DidYouMeanFromAuthorities syspref)\n"; + SetVersion ($DBversion); +} + + =head1 FUNCTIONS =head2 TableExists($table) -- 2.39.5