make DiskSpace be a bigint

This commit is contained in:
Isaac Connor 2017-10-11 14:07:01 -04:00
parent e845af94cc
commit e16d852248
2 changed files with 2 additions and 2 deletions

View File

@ -207,7 +207,7 @@ CREATE TABLE `Events` (
`Notes` text, `Notes` text,
`StateId` int(10) unsigned NOT NULL, `StateId` int(10) unsigned NOT NULL,
`Orientation` enum('0','90','180','270','hori','vert') NOT NULL default '0', `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`), PRIMARY KEY (`Id`,`MonitorId`),
KEY `MonitorId` (`MonitorId`), KEY `MonitorId` (`MonitorId`),
KEY `StartTime` (`StartTime`), KEY `StartTime` (`StartTime`),

View File

@ -10,7 +10,7 @@ SET @s = (SELECT IF(
AND column_name = 'DiskSpace' AND column_name = 'DiskSpace'
) > 0, ) > 0,
"SELECT 'Column DiskSpace exists in Events'", "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; PREPARE stmt FROM @s;