Merge pull request #407 from Icinga/bugfix/fix-schema-and-upgrade

Schema: Fix index typos + missing comment change
This commit is contained in:
Eric Lippmann 2021-11-12 11:27:37 +01:00 committed by GitHub
commit 66a36efc06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -432,7 +432,7 @@ CREATE TABLE checkcommand_customvar (
PRIMARY KEY (id),
INDEX idx_checkcommand_customvar_checkcheckcommand_id (checkcommand_id, customvar_id),
INDEX idx_checkcommand_customvar_checkcommand_id (checkcommand_id, customvar_id),
INDEX idx_checkcommand_customvar_customvar_id (customvar_id, checkcommand_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=DYNAMIC;

View file

@ -337,10 +337,12 @@ ALTER TABLE eventcommand_customvar
ALTER TABLE notificationcommand_customvar
DROP INDEX idx_notificationcommand_customvar_command_id,
DROP INDEX idx_notificationcommand_customvar_id;
DROP INDEX idx_notificationcommand_customvar_customvar_id;
ALTER TABLE notification
RENAME COLUMN command_id TO notificationcommand_id;
ALTER TABLE notification
MODIFY notificationcommand_id binary(20) NOT NULL COMMENT 'notificationcommand.id';
ALTER TABLE checkcommand_argument
RENAME COLUMN command_id TO checkcommand_id;