Change Event->Cause to a TEXT instead of varchar(32) because we now inclue Alarmed Zone name and could include other info as well.

Fixes #3403
This commit is contained in:
Isaac Connor 2021-12-28 12:30:16 -05:00
parent bdcb7950cd
commit f9f8764507
2 changed files with 3 additions and 1 deletions

View File

@ -188,7 +188,7 @@ CREATE TABLE `Events` (
`StorageId` smallint(5) unsigned default 0, `StorageId` smallint(5) unsigned default 0,
`SecondaryStorageId` smallint(5) unsigned default 0, `SecondaryStorageId` smallint(5) unsigned default 0,
`Name` varchar(64) NOT NULL default '', `Name` varchar(64) NOT NULL default '',
`Cause` varchar(32) NOT NULL default '', `Cause` TEXT,
`StartDateTime` datetime default NULL, `StartDateTime` datetime default NULL,
`EndDateTime` datetime default NULL, `EndDateTime` datetime default NULL,
`Width` smallint(5) unsigned NOT NULL default '0', `Width` smallint(5) unsigned NOT NULL default '0',

2
db/zm_update-1.37.7.sql Normal file
View File

@ -0,0 +1,2 @@
/* Change Cause from varchar(32) to TEXT. We now include alarmed zone name */
ALTER TABLE `Events` MODIFY `Cause` TEXT;