make DiskSpace be a bigint
This commit is contained in:
parent
e845af94cc
commit
e16d852248
|
@ -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`),
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue