Bug 24854: DBRev 19.11.05.007

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
This commit is contained in:
Joy Nelson 2020-05-20 14:59:21 +00:00
parent 12b91faa04
commit a17ea63d02
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.11.05.006";
$VERSION = "19.11.05.007";
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

@ -20561,6 +20561,23 @@ if( CheckVersion( $DBversion ) ) {
print "Upgrade to $DBversion done (Bug 25389: Catch errant cases of LOST_RETURNED)\n";
}
$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";
}
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.
my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/';