mirror of
https://github.com/Icinga/icingadb.git
synced 2026-05-28 04:35:54 -04:00
Merge pull request #407 from Icinga/bugfix/fix-schema-and-upgrade
Schema: Fix index typos + missing comment change
This commit is contained in:
commit
66a36efc06
2 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue