Commit 0a8d34ed authored by Laurent Calvet's avatar Laurent Calvet
Browse files

fix(upgrade): Moves the contact_theme column update to beta2 (#11106)

parent afd85290
......@@ -106,15 +106,6 @@ try {
);
}
// Add contact_theme column to contact table
if ($pearDB->isColumnExist('contact', 'contact_theme') !== 1) {
$errorMessage = "Unable to add column 'contact_theme' to table 'contact'";
$pearDB->query(
"ALTER TABLE `contact` ADD COLUMN "
. "`contact_theme` enum('light','dark') DEFAULT 'light' AFTER `contact_js_effects`"
);
}
/**
* Transactional queries
*/
......
......@@ -50,6 +50,15 @@ try {
);
}
// Add contact_theme column to contact table
if ($pearDB->isColumnExist('contact', 'contact_theme') !== 1) {
$errorMessage = "Unable to add column 'contact_theme' to table 'contact'";
$pearDB->query(
"ALTER TABLE `contact` ADD COLUMN "
. "`contact_theme` enum('light','dark') DEFAULT 'light' AFTER `contact_js_effects`"
);
}
$errorMessage = "Unable to update logger_version from cfg_nagios table";
$pearDB->query(
"UPDATE `cfg_nagios` set logger_version = 'log_legacy_enabled'"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment