Commit 6c4cc0f4 authored by Kevin Duret's avatar Kevin Duret
Browse files

fix(upgrade): move bbdo3 upgrade to beta 2 (#11111)

Refs: MON-13319
parent 0c529848
......@@ -93,11 +93,6 @@ try {
$errorMessage = "Unable to alter table security_token";
$pearDB->query("ALTER TABLE `security_token` MODIFY `token` varchar(4096)");
if ($pearDB->isColumnExist('cfg_centreonbroker', 'bbdo_version') !== 1) {
$errorMessage = "Unable to add 'bbdo_version' column to 'cfg_centreonbroker' table";
$pearDB->query('ALTER TABLE `cfg_centreonbroker` ADD `bbdo_version` VARCHAR(50) DEFAULT "3.0.0"');
}
if ($pearDB->isColumnExist('provider_configuration', 'custom_configuration') !== 1) {
// Add custom_configuration to provider configurations
$errorMessage = "Unable to add column 'custom_configuration' to table 'provider_configuration'";
......
......@@ -59,6 +59,11 @@ try {
);
}
if ($pearDB->isColumnExist('cfg_centreonbroker', 'bbdo_version') !== 1) {
$errorMessage = "Unable to add 'bbdo_version' column to 'cfg_centreonbroker' table";
$pearDB->query('ALTER TABLE `cfg_centreonbroker` ADD `bbdo_version` VARCHAR(50) DEFAULT "3.0.0"');
}
$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