mirror of https://github.com/apache/cloudstack.git
bug 9374: removed guest_ip/mac/netmask info from user_vm table. This information is kept in nics table in 2.2.x
status 9374: resolved fixed
This commit is contained in:
parent
aea0a7326a
commit
28029b20c1
|
|
@ -847,9 +847,6 @@ CREATE TABLE `cloud`.`user_vm` (
|
|||
`id` bigint unsigned UNIQUE NOT NULL,
|
||||
`iso_id` bigint unsigned,
|
||||
`display_name` varchar(255),
|
||||
`guest_ip_address` char(40) COMMENT 'ip address within the guest network',
|
||||
`guest_mac_address` varchar(17) COMMENT 'mac address within the guest network',
|
||||
`guest_netmask` varchar(15) COMMENT 'netmask within the guest network',
|
||||
`user_data` varchar(2048),
|
||||
PRIMARY KEY (`id`),
|
||||
CONSTRAINT `fk_user_vm__id` FOREIGN KEY `fk_user_vm__id` (`id`) REFERENCES `vm_instance`(`id`) ON DELETE CASCADE
|
||||
|
|
|
|||
|
|
@ -132,3 +132,9 @@ UPDATE `cloud`.`service_offering` s, `cloud`.`disk_offering` d SET s.ha_enabled=
|
|||
|
||||
ALTER TABLE `cloud`.`vm_instance` ADD CONSTRAINT `fk_vm_instance__account_id` FOREIGN KEY `fk_vm_instance__account_id` (`account_id`) REFERENCES `account` (`id`);
|
||||
ALTER TABLE `cloud`.`vm_instance` ADD CONSTRAINT `fk_vm_instance__service_offering_id` FOREIGN KEY `fk_vm_instance__service_offering_id` (`service_offering_id`) REFERENCES `service_offering` (`id`);
|
||||
|
||||
|
||||
|
||||
ALTER TABLE `cloud`.`user_vm` DROP COLUMN guest_ip_address;
|
||||
ALTER TABLE `cloud`.`user_vm` DROP COLUMN guest_mac_address;
|
||||
ALTER TABLE `cloud`.`user_vm` DROP COLUMN guest_netmask;
|
||||
|
|
|
|||
Loading…
Reference in New Issue