mirror of https://github.com/apache/cloudstack.git
Bug 9505 - No indexes on op_dc_link_local_ip_address_alloc
Adding index to op_dc_link_local_ip_address_alloc. Also added upgrade for 224 to 225
This commit is contained in:
parent
479c6ea313
commit
e365b0ac48
|
|
@ -508,7 +508,10 @@ CREATE TABLE `cloud`.`op_dc_link_local_ip_address_alloc` (
|
|||
`nic_id` bigint unsigned NULL COMMENT 'instance id',
|
||||
`reservation_id` char(40) NULL COMMENT 'reservation id used to reserve this network',
|
||||
`taken` datetime COMMENT 'Date taken',
|
||||
PRIMARY KEY (`id`)
|
||||
PRIMARY KEY (`id`),
|
||||
INDEX `i_op_dc_link_local_ip_address_alloc__pod_id`(`pod_id`),
|
||||
INDEX `i_op_dc_link_local_ip_address_alloc__data_center_id`(`data_center_id`),
|
||||
INDEX `i_op_dc_link_local_ip_address_alloc__nic_id_reservation_id`(`nic_id`,`reservation_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE `cloud`.`host_pod_ref` (
|
||||
|
|
|
|||
|
|
@ -46,4 +46,8 @@ ALTER TABLE `cloud`.`security_ingress_rule` DROP COLUMN `allowed_sec_grp_acct`;
|
|||
ALTER TABLE `cloud`.`data_center` ADD COLUMN `zone_token` varchar(255);
|
||||
ALTER TABLE `cloud`.`data_center` ADD INDEX `i_data_center__zone_token`(`zone_token`);
|
||||
|
||||
ALTER TABLE `cloud`.`vm_template` ADD COLUMN `source_template_id` bigint unsigned COMMENT 'Id of the original template, if this template is created from snapshot';
|
||||
ALTER TABLE `cloud`.`vm_template` ADD COLUMN `source_template_id` bigint unsigned COMMENT 'Id of the original template, if this template is created from snapshot';
|
||||
|
||||
ALTER TABLE `cloud`.`op_dc_link_local_ip_address_alloc` ADD INDEX `i_op_dc_link_local_ip_address_alloc__pod_id`(`pod_id`);
|
||||
ALTER TABLE `cloud`.`op_dc_link_local_ip_address_alloc` ADD INDEX `i_op_dc_link_local_ip_address_alloc__data_center_id`(`data_center_id`);
|
||||
ALTER TABLE `cloud`.`op_dc_link_local_ip_address_alloc` ADD INDEX `i_op_dc_link_local_ip_address_alloc__nic_id_reservation_id`(`nic_id`,`reservation_id`);
|
||||
Loading…
Reference in New Issue