This repository has been archived by the owner on Dec 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sql): create feature table in 2.8.25 upgrade
- Loading branch information
Showing
2 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,2 @@ | ||
-- Change version of Centreon | ||
UPDATE `informations` SET `value` = '2.8.23' WHERE CONVERT( `informations`.`key` USING utf8 ) = 'version' AND CONVERT ( `informations`.`value` USING utf8 ) = '2.8.22' LIMIT 1; | ||
|
||
-- Manage new feature proposal | ||
CREATE TABLE IF NOT EXISTS contact_feature ( | ||
contact_id INT NOT NULL, | ||
feature VARCHAR(255) NOT NULL, | ||
feature_version VARCHAR(50) NOT NULL, | ||
feature_enabled TINYINT DEFAULT 0, | ||
PRIMARY KEY (contact_id, feature, feature_version), | ||
FOREIGN KEY (contact_id) REFERENCES contact (contact_id) ON DELETE CASCADE | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,12 @@ | ||
-- Change version of Centreon | ||
UPDATE `informations` SET `value` = '2.8.25' WHERE CONVERT( `informations`.`key` USING utf8 ) = 'version' AND CONVERT ( `informations`.`value` USING utf8 ) = '2.8.24' LIMIT 1; | ||
UPDATE `informations` SET `value` = '2.8.25' WHERE CONVERT( `informations`.`key` USING utf8 ) = 'version' AND CONVERT ( `informations`.`value` USING utf8 ) = '2.8.24' LIMIT 1; | ||
|
||
-- Manage new feature proposal | ||
CREATE TABLE IF NOT EXISTS contact_feature ( | ||
contact_id INT NOT NULL, | ||
feature VARCHAR(255) NOT NULL, | ||
feature_version VARCHAR(50) NOT NULL, | ||
feature_enabled TINYINT DEFAULT 0, | ||
PRIMARY KEY (contact_id, feature, feature_version), | ||
FOREIGN KEY (contact_id) REFERENCES contact (contact_id) ON DELETE CASCADE | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |