You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CLOUDSTACK-1963 New mapping model for CloudStack zone and Vmware datacenter
DB schema changes to support this feature.
Added 3 new tables.
'vmware_data_center' to persist information about each Vmware datacenter known to cloudstack.
'vmware_data_center_zone_map' to persist mapping information of a Vmware datacenter & cloudstack zone.
'legacy_zones' to persist the known legacy zones in the deployment.
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
`id`bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
1021
+
`zone_id`bigint unsigned NOT NULL UNIQUE COMMENT 'id of CloudStack zone',
1022
+
`vmware_data_center_id`bigint unsigned NOT NULL UNIQUE COMMENT 'id of VMware datacenter',
1023
+
PRIMARY KEY (`id`),
1024
+
CONSTRAINT`fk_vmware_data_center_zone_map__vmware_data_center_id`FOREIGN KEY (`vmware_data_center_id`) REFERENCES`vmware_data_center`(`id`) ON DELETE CASCADE
1025
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1026
+
1027
+
CREATETABLE `cloud`.`legacy_zones` (
1028
+
`id`bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
1029
+
`zone_id`bigint unsigned NOT NULL UNIQUE COMMENT 'id of CloudStack zone',
1030
+
PRIMARY KEY (`id`),
1031
+
CONSTRAINT`fk_legacy_zones__zone_id`FOREIGN KEY (`zone_id`) REFERENCES`data_center`(`id`) ON DELETE CASCADE
1032
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1008
1033
1009
1034
ALTERTABLE`cloud`.`network_offerings` ADD COLUMN `eip_associate_public_ip`int(1) unsigned NOT NULL DEFAULT 0 COMMENT 'true if public IP is associated with user VM creation by default when EIP service is enabled.' AFTER `elastic_ip_service`;
0 commit comments