CS-16192: added index on host_id field to host_details table

Reviewed-by: Prachi Damle
This commit is contained in:
Alena Prokharchyk 2012-08-29 10:29:13 -07:00
parent cf9e62a80e
commit e3cf7813be
1 changed files with 1 additions and 0 deletions

View File

@ -833,6 +833,7 @@ CREATE TABLE `cloud`.`host_details` (
`value` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
CONSTRAINT `fk_host_details__host_id` FOREIGN KEY (`host_id`) REFERENCES `host`(`id`) ON DELETE CASCADE,
INDEX `fk_host_details__host_id`(`host_id`),
CONSTRAINT UNIQUE KEY `uk_host_id_name` (`host_id`, `name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;