Skip to content

Commit 21b8a04

Browse files
murali-reddychipchilders
authored andcommitted
CLOUDSTACK-2587: netscaler_pod_ref DB upgrade is missing from 3.0.2 to
4.x added missing schema as part of 4.0 to 4.1 upgrade
1 parent af8a3b6 commit 21b8a04

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎setup/db/db/schema-40to410.sql‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,3 +1638,15 @@ INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Usage', 'DEFAULT', 'manageme
16381638

16391639
INSERT IGNORE INTO `cloud`.`guest_os` (id, uuid, category_id, display_name) VALUES (163, UUID(), 10, 'Ubuntu 12.04 (32-bit)');
16401640
INSERT IGNORE INTO `cloud`.`guest_os` (id, uuid, category_id, display_name) VALUES (164, UUID(), 10, 'Ubuntu 12.04 (64-bit)');
1641+
1642+
DROP TABLE IF EXISTS `cloud`.`netscaler_pod_ref`;
1643+
CREATE TABLE `cloud`.`netscaler_pod_ref` (
1644+
`id` bigint unsigned NOT NULL auto_increment COMMENT 'id',
1645+
`external_load_balancer_device_id` bigint unsigned NOT NULL COMMENT 'id of external load balancer device',
1646+
`pod_id` bigint unsigned NOT NULL COMMENT 'pod id',
1647+
PRIMARY KEY (`id`),
1648+
CONSTRAINT `fk_ns_pod_ref__pod_id` FOREIGN KEY (`pod_id`) REFERENCES `cloud`.`host_pod_ref`(`id`) ON DELETE CASCADE,
1649+
CONSTRAINT `fk_ns_pod_ref__device_id` FOREIGN KEY (`external_load_balancer_device_id`) REFERENCES `external_load_balancer_devices`(`id`) ON DELETE CASCADE
1650+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1651+
1652+
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'management-server', 'eip.use.multiple.netscalers' , 'false', 'Should be set to true, if there will be multiple NetScaler devices providing EIP service in a zone');

0 commit comments

Comments
 (0)