2016-02-06 00:23:45 +08:00
|
|
|
--
|
|
|
|
-- This updates a 1.30.1 database to 1.30.2
|
|
|
|
--
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Update Filters table to have a Concurrent Column
|
|
|
|
--
|
|
|
|
|
|
|
|
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;
|
2017-01-26 06:14:30 +08:00
|
|
|
|
|
|
|
|
2017-01-03 02:03:42 +08:00
|
|
|
ALTER TABLE Users MODIFY MonitorIds TEXT NOT NULL;
|