rename eventserver to eventnotification
This commit is contained in:
parent
4c35f2910c
commit
053289c4a0
|
@ -572,6 +572,7 @@ CREATE TABLE `Servers` (
|
||||||
`zmstats` BOOLEAN NOT NULL DEFAULT FALSE,
|
`zmstats` BOOLEAN NOT NULL DEFAULT FALSE,
|
||||||
`zmaudit` BOOLEAN NOT NULL DEFAULT FALSE,
|
`zmaudit` BOOLEAN NOT NULL DEFAULT FALSE,
|
||||||
`zmtrigger` BOOLEAN NOT NULL DEFAULT FALSE,
|
`zmtrigger` BOOLEAN NOT NULL DEFAULT FALSE,
|
||||||
|
`zmeventnotification` BOOLEAN NOT NULL DEFAULT FALSE,
|
||||||
PRIMARY KEY (`Id`)
|
PRIMARY KEY (`Id`)
|
||||||
) ENGINE=@ZM_MYSQL_ENGINE@;
|
) ENGINE=@ZM_MYSQL_ENGINE@;
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
|
||||||
|
SET @s = (SELECT IF(
|
||||||
|
(SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = DATABASE()
|
||||||
|
AND table_name = 'Servers'
|
||||||
|
AND column_name = 'zmeventnotification'
|
||||||
|
) > 0,
|
||||||
|
"SELECT 'Column zmeventnotification already exists in Servers'",
|
||||||
|
"ALTER TABLE Servers ADD `zmeventnotification` BOOLEAN NOT NULL DEFAULT FALSE AFTER `zmtrigger`"
|
||||||
|
));
|
||||||
|
|
||||||
|
PREPARE stmt FROM @s;
|
||||||
|
EXECUTE stmt;
|
Loading…
Reference in New Issue