Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
applying suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hyahiaoui-ext committed Jul 12, 2022
1 parent 5dd8408 commit 845269c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion www/install/createTables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2270,7 +2270,6 @@ CREATE TABLE IF NOT EXISTS contact_feature (
CREATE TABLE IF NOT EXISTS `remote_servers` (
`id` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`ip` VARCHAR(255) NOT NULL,
`app_key` VARCHAR(40) NOT NULL,
`version` VARCHAR(16) NOT NULL,
`is_connected` TINYINT(1) NOT NULL DEFAULT 0,
`created_at` TIMESTAMP NOT NULL,
Expand Down
1 change: 1 addition & 0 deletions www/install/php/Update-22.10.0-beta.1.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

$errorMessage = "Unable to delete 'oreon_web_path' option from database";
$pearDB->query("DELETE FROM `options` WHERE `key` = 'oreon_web_path'");
$errorMessage = "Unable to delete 'appKey' option from database";
$pearDB->query("DELETE FROM `informations` WHERE `key` = 'appKey'");

$pearDB->commit();
Expand Down
4 changes: 3 additions & 1 deletion www/install/sql/centreon/Update-DB-22.10.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,6 @@ ALTER TABLE cfg_nagios MODIFY `enable_predictive_service_dependency_checks` enum
ALTER TABLE cfg_nagios MODIFY `debug_verbosity` enum('0','1');


ALTER TABLE contact DROP COLUMN IF EXISTS `enable_one_click_export`;
ALTER TABLE contact DROP COLUMN IF EXISTS `enable_one_click_export`;

ALTER TABLE remote_servers DROP COLUMN IF EXISTS `app_key`;

0 comments on commit 845269c

Please sign in to comment.