Fix AlarmStartCommand => EventStartCommand

This commit is contained in:
Isaac Connor 2021-11-29 12:54:46 -05:00
parent ea6a84ae66
commit 072d181f79
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ SET @s = (SELECT IF(
FROM INFORMATION_SCHEMA.COLUMNS FROM INFORMATION_SCHEMA.COLUMNS
WHERE table_name = 'Monitors' WHERE table_name = 'Monitors'
AND table_schema = DATABASE() AND table_schema = DATABASE()
AND column_name = 'AlarmStartCommand' AND column_name = 'EventStartCommand'
) > 0, ) > 0,
"SELECT 'Column EventStartCommand already exists in Monitors'", "SELECT 'Column EventStartCommand already exists in Monitors'",
"ALTER TABLE `Monitors` ADD COLUMN `EventStartCommand` VARCHAR(255) NOT NULL DEFAULT '' AFTER `Triggers`" "ALTER TABLE `Monitors` ADD COLUMN `EventStartCommand` VARCHAR(255) NOT NULL DEFAULT '' AFTER `Triggers`"