Fix logic ordering in 1.35.14 updated that moves columns from Monitors table to Monitor_Status
This commit is contained in:
parent
c600725a1a
commit
d4467dba36
|
@ -28,8 +28,8 @@ SET @s = (SELECT IF(
|
||||||
AND table_name = 'Monitors'
|
AND table_name = 'Monitors'
|
||||||
AND column_name = 'TotalEvents'
|
AND column_name = 'TotalEvents'
|
||||||
) > 0,
|
) > 0,
|
||||||
"SELECT 'Column TotalEvents is already removed from Monitors'",
|
"ALTER TABLE `Monitors` DROP `TotalEvents`",
|
||||||
"ALTER TABLE `Monitors` DROP `TotalEvents`"
|
"SELECT 'Column TotalEvents is already removed from Monitors'"
|
||||||
));
|
));
|
||||||
PREPARE stmt FROM @s;
|
PREPARE stmt FROM @s;
|
||||||
EXECUTE stmt;
|
EXECUTE stmt;
|
||||||
|
@ -50,8 +50,8 @@ SET @s = (SELECT IF(
|
||||||
AND table_name = 'Monitors'
|
AND table_name = 'Monitors'
|
||||||
AND column_name = 'TotalEventDiskSpace'
|
AND column_name = 'TotalEventDiskSpace'
|
||||||
) > 0,
|
) > 0,
|
||||||
"SELECT 'Column TotalEventDiskSpace is already removed from Monitors'",
|
"ALTER TABLE `Monitors` DROP `TotalEventDiskSpace`",
|
||||||
"ALTER TABLE `Monitors` DROP `TotalEventDiskSpace`"
|
"SELECT 'Column TotalEventDiskSpace is already removed from Monitors'"
|
||||||
));
|
));
|
||||||
PREPARE stmt FROM @s;
|
PREPARE stmt FROM @s;
|
||||||
EXECUTE stmt;
|
EXECUTE stmt;
|
||||||
|
|
Loading…
Reference in New Issue