2017-06-14 06:02:28 +08:00
|
|
|
--
|
|
|
|
-- Update Filters table to have a Concurrent Column
|
|
|
|
--
|
|
|
|
|
2018-01-20 05:32:48 +08:00
|
|
|
SELECT 'Checking for Concurrent in Filters';
|
2017-06-14 06:02:28 +08:00
|
|
|
SET @s = (SELECT IF(
|
|
|
|
(SELECT COUNT(*)
|
|
|
|
FROM INFORMATION_SCHEMA.COLUMNS
|
|
|
|
WHERE table_name = 'Filters'
|
|
|
|
AND table_schema = DATABASE()
|
|
|
|
AND column_name = 'Concurrent'
|
|
|
|
) > 0,
|
|
|
|
"SELECT 'Column Concurrent already exists in Filters'",
|
|
|
|
"ALTER TABLE Filters ADD COLUMN `Concurrent` tinyint(1) unsigned NOT NULL default '0' AFTER Background"
|
|
|
|
));
|
|
|
|
|
|
|
|
PREPARE stmt FROM @s;
|
|
|
|
EXECUTE stmt;
|