mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
41-42 db upgrade - added cloud db reference to the upgrade statements for remote access vpn
This commit is contained in:
parent
6110e00c54
commit
2313676857
@ -20,9 +20,9 @@
|
||||
--;
|
||||
|
||||
#have to drop the foreign key in order to delete primary key; will re-insert the foreign key later
|
||||
ALTER TABLE remote_access_vpn DROP foreign key `fk_remote_access_vpn__vpn_server_addr_id`;
|
||||
ALTER TABLE remote_access_vpn DROP primary key;
|
||||
ALTER TABLE remote_access_vpn ADD primary key (`id`);
|
||||
ALTER TABLE remote_access_vpn ADD CONSTRAINT `fk_remote_access_vpn__vpn_server_addr_id` FOREIGN KEY (`vpn_server_addr_id`) REFERENCES `user_ip_address` (`id`);
|
||||
ALTER TABLE `cloud`.`remote_access_vpn` DROP foreign key `fk_remote_access_vpn__vpn_server_addr_id`;
|
||||
ALTER TABLE `cloud`.`remote_access_vpn` DROP primary key;
|
||||
ALTER TABLE `cloud`.`remote_access_vpn` ADD primary key (`id`);
|
||||
ALTER TABLE `cloud`.`remote_access_vpn` ADD CONSTRAINT `fk_remote_access_vpn__vpn_server_addr_id` FOREIGN KEY (`vpn_server_addr_id`) REFERENCES `user_ip_address` (`id`);
|
||||
|
||||
|
||||
|
||||
@ -391,8 +391,8 @@ CREATE VIEW `cloud`.`account_view` AS
|
||||
and async_job.instance_type = 'Account'
|
||||
and async_job.job_status = 0;
|
||||
|
||||
ALTER TABLE remote_access_vpn ADD COLUMN `id` bigint unsigned NOT NULL UNIQUE AUTO_INCREMENT COMMENT 'id';
|
||||
ALTER TABLE remote_access_vpn ADD COLUMN `uuid` varchar(40) UNIQUE;
|
||||
ALTER TABLE `cloud`.`remote_access_vpn` ADD COLUMN `id` bigint unsigned NOT NULL UNIQUE AUTO_INCREMENT COMMENT 'id';
|
||||
ALTER TABLE `cloud`.`remote_access_vpn` ADD COLUMN `uuid` varchar(40) UNIQUE;
|
||||
|
||||
-- START: support for LXC
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user