From 4e30a9e71c6090c3efa38b9d2b13467b5b5ebbda Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 21 Aug 2018 12:50:33 -0400 Subject: [PATCH] Stats.EventId must be a bigint too --- db/zm_create.sql.in | 2 +- db/zm_update-1.31.46.sql | 2 ++ version | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 db/zm_update-1.31.46.sql diff --git a/db/zm_create.sql.in b/db/zm_create.sql.in index 2bd0706ef..f39c9a90b 100644 --- a/db/zm_create.sql.in +++ b/db/zm_create.sql.in @@ -581,7 +581,7 @@ DROP TABLE IF EXISTS `Stats`; CREATE TABLE `Stats` ( `MonitorId` int(10) unsigned NOT NULL default '0', `ZoneId` int(10) unsigned NOT NULL default '0', - `EventId` int(10) unsigned NOT NULL default '0', + `EventId` BIGINT UNSIGNED NOT NULL, `FrameId` int(10) unsigned NOT NULL default '0', `PixelDiff` tinyint(3) unsigned NOT NULL default '0', `AlarmPixels` int(10) unsigned NOT NULL default '0', diff --git a/db/zm_update-1.31.46.sql b/db/zm_update-1.31.46.sql new file mode 100644 index 000000000..8c9767e75 --- /dev/null +++ b/db/zm_update-1.31.46.sql @@ -0,0 +1,2 @@ +ALTER TABLE Stats MODIFY COLUMN EventId bigint unsigned NOT NULL; + diff --git a/version b/version index 6701dcb1c..2bb17d951 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.31.45 +1.31.46