Added isRunning column

This commit is contained in:
Pliable Pixels 2015-06-21 09:30:23 -04:00
parent d2472f177d
commit 754091b55d
1 changed files with 16 additions and 0 deletions

View File

@ -324,4 +324,20 @@ WHERE NOT EXISTS (
--
UPDATE `zm`.`Config` SET `Category`='hidden' WHERE `Name`='ZM_USE_DEEP_STORAGE';
--- The States table will be updated to have a new column called IsActive
--- used to keep track of which custom state is active (if any)
SET @s = (SELECT IF(
(SELECT COUNT(*)
FROM INFORMATION_SCHEMA.COLUMNS
WHERE table_name = 'States'
AND table_schema = DATABASE()
AND column_name = 'IsActive'
) > 0,
"SELECT 'Column IsActive exists in States'",
"ALTER TABLE `States` ADD `IsActive` tinyint(3) unsigned not null default 0 AFTER `Definition`"
));
PREPARE stmt FROM @s;
EXECUTE stmt;