From f9f87645077cc9d1893bd69f9fd7c568e275e498 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 28 Dec 2021 12:30:16 -0500 Subject: [PATCH] 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 --- db/zm_create.sql.in | 2 +- db/zm_update-1.37.7.sql | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 db/zm_update-1.37.7.sql diff --git a/db/zm_create.sql.in b/db/zm_create.sql.in index fbc7cad3c..72b0be56f 100644 --- a/db/zm_create.sql.in +++ b/db/zm_create.sql.in @@ -188,7 +188,7 @@ CREATE TABLE `Events` ( `StorageId` smallint(5) unsigned default 0, `SecondaryStorageId` smallint(5) unsigned default 0, `Name` varchar(64) NOT NULL default '', - `Cause` varchar(32) NOT NULL default '', + `Cause` TEXT, `StartDateTime` datetime default NULL, `EndDateTime` datetime default NULL, `Width` smallint(5) unsigned NOT NULL default '0', diff --git a/db/zm_update-1.37.7.sql b/db/zm_update-1.37.7.sql new file mode 100644 index 000000000..7d45f67c6 --- /dev/null +++ b/db/zm_update-1.37.7.sql @@ -0,0 +1,2 @@ +/* Change Cause from varchar(32) to TEXT. We now include alarmed zone name */ +ALTER TABLE `Events` MODIFY `Cause` TEXT;