mirror of https://github.com/apache/cloudstack.git
CS-16192: added index on host_id field to host_details table
Reviewed-by: Prachi Damle
This commit is contained in:
parent
cf9e62a80e
commit
e3cf7813be
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue