Bug 24854: DBRev 19.05.11.001

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

(cherry picked from commit a17ea63d02)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
Joy Nelson 2020-05-20 14:59:21 +00:00 committed by Victor Grousset/tuxayo
parent ffee7128d4
commit 3bbc5ca0ec
3 changed files with 18 additions and 17 deletions

View File

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
$VERSION = "19.05.11.000";
$VERSION = "19.05.11.001";
sub version {
return $VERSION;

View File

@ -1,16 +0,0 @@
$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";
}

View File

@ -19067,6 +19067,23 @@ if ( CheckVersion($DBversion) ) {
SetVersion ($DBversion);
}
$DBversion = "19.05.11.001";
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";
}
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.