diff --git a/db/zm_create.sql.in b/db/zm_create.sql.in index 2e7250ae0..1b45b1216 100644 --- a/db/zm_create.sql.in +++ b/db/zm_create.sql.in @@ -207,7 +207,7 @@ CREATE TABLE `Events` ( `Notes` text, `StateId` int(10) unsigned NOT NULL, `Orientation` enum('0','90','180','270','hori','vert') NOT NULL default '0', - `DiskSpace` integer unsigned default NULL, + `DiskSpace` bigint unsigned default NULL, PRIMARY KEY (`Id`,`MonitorId`), KEY `MonitorId` (`MonitorId`), KEY `StartTime` (`StartTime`), diff --git a/db/zm_update-1.31.8.sql b/db/zm_update-1.31.8.sql index 40255b7d9..70063ebb6 100644 --- a/db/zm_update-1.31.8.sql +++ b/db/zm_update-1.31.8.sql @@ -10,7 +10,7 @@ SET @s = (SELECT IF( AND column_name = 'DiskSpace' ) > 0, "SELECT 'Column DiskSpace exists in Events'", -"ALTER TABLE Events ADD `DiskSpace` integer unsigned default null AFTER `Orientation`" +"ALTER TABLE Events ADD `DiskSpace` bigint unsigned default null AFTER `Orientation`" )); PREPARE stmt FROM @s;