make instance_id unique to allow usage of ON DUPLICATE KEY

This commit is contained in:
Chiradeep Vittal 2011-08-25 23:35:20 -07:00
parent c8712401ca
commit 35f44615e0
1 changed files with 1 additions and 1 deletions

View File

@ -1423,7 +1423,7 @@ CREATE TABLE `cloud`.`op_vm_ruleset_log` (
`created` datetime NOT NULL COMMENT 'time the entry was requested',
`logsequence` bigint unsigned COMMENT 'seq number to be sent to agent, uniquely identifies ruleset update',
PRIMARY KEY (`id`),
INDEX `i_op_vm_ruleset_log__instance_id`(`instance_id`)
UNIQUE `i_op_vm_ruleset_log__instance_id`(`instance_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `cloud`.`instance_group` (