mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
bug 9347: Adding index and foreign key constraint for upload table for migration from 2.1 to 2.2
Status 9347: resolved fixed
This commit is contained in:
parent
a3acbf60f1
commit
463bb0fdec
@ -351,7 +351,10 @@ CREATE TABLE `cloud`.`upload` (
|
||||
`error_str` varchar(255),
|
||||
`url` varchar(255),
|
||||
`install_path` varchar(255),
|
||||
PRIMARY KEY (`id`)
|
||||
PRIMARY KEY (`id`),
|
||||
CONSTRAINT `fk_upload__host_id` FOREIGN KEY `fk_upload__host_id` (`host_id`) REFERENCES `host` (`id`) ON DELETE CASCADE,
|
||||
INDEX `i_upload__host_id`(`host_id`),
|
||||
INDEX `i_upload__type_id`(`type_id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
|
||||
|
||||
ALTER TABLE `cloud`.`console_proxy` MODIFY COLUMN `public_mac_address` varchar(17);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user