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:
parent
0578902e91
commit
ffee7128d4
|
|
@ -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";
|
||||
}
|
||||
Loading…
Reference in New Issue