alter Events Primary Key to just the Id. This prevents a double key index on MonitorId
This commit is contained in:
parent
212cd7e6c4
commit
cae37e29b0
|
@ -209,7 +209,7 @@ CREATE TABLE `Events` (
|
||||||
`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` bigint unsigned default NULL,
|
`DiskSpace` bigint unsigned default NULL,
|
||||||
PRIMARY KEY (`Id`,`MonitorId`),
|
PRIMARY KEY (`Id`),
|
||||||
KEY `MonitorId` (`MonitorId`),
|
KEY `MonitorId` (`MonitorId`),
|
||||||
KEY `StartTime` (`StartTime`),
|
KEY `StartTime` (`StartTime`),
|
||||||
KEY `Frames` (`Frames`),
|
KEY `Frames` (`Frames`),
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
alter table Events modify Id int(10) unsigned;
|
||||||
|
alter table Events DROP Primary key;
|
||||||
|
alter table Events Add Primary key(Id);
|
||||||
|
alter table Events modify Id int(10) unsigned auto_incremement;
|
||||||
|
|
Loading…
Reference in New Issue