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 <jcamins@cpbibliography.com>
This commit is contained in:
parent
734dbff692
commit
c1c3f898cd
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue