Bug 24854: Disable IDreamBooks sysprefs

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>

(cherry picked from commit 12b91faa04)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
Jonathan Druart 2020-05-20 15:01:54 +02:00 committed by Victor Grousset/tuxayo
parent 0578902e91
commit ffee7128d4
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
my $ft_enabled = $dbh->selectrow_array(q|
SELECT COUNT(*) FROM systempreferences WHERE variable like "IDreamBooks%" and value="1"
|);
if ( $ft_enabled ) {
$dbh->do(q|
UPDATE systempreferences
SET value="0"
WHERE variable like "IDreamBooks%"
|);
}
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 24854 - Disable IDreamBooks)\n";
}