Skip to content

Commit 133f0d9

Browse files
author
abhishek
committed
some more help
1 parent c218b3f commit 133f0d9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎setup/db/22beta4to22GA.sql‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ALTER TABLE user_ip_address DROP primary key;
66

77

88

9-
--step 2
9+
--step 2A
1010
--schema+data changes
1111
----------------------------------------user ip address table-------------------------------------------------------------------------
1212
ALTER TABLE `cloud`.`user_ip_address` ADD COLUMN `id` bigint unsigned NOT NULL auto_increment primary key;
@@ -33,10 +33,12 @@ UPDATE remote_access_vpn SET vpn_server_addr_id = (SELECT id from user_ip_addres
3333
ALTER TABLE `cloud`.`remote_access_vpn` DROP COLUMN vpn_server_addr;
3434

3535
--------------------------user_ip_address table re-visited------------------------------------------------------------------------------------
36+
--step 2B
3637
--done in the java layer
3738
-- the updates the user ip address table with the vm id; using a 3 way join on firewall rules, user ip address, port forwarding tables
3839
-- to do this, run Db22beta4to22GAMigrationUtil.java
3940

41+
--step 2C
4042
DROP VIEW if exists user_ip_address_view;
4143
ALTER TABLE `cloud`.`user_ip_address` ADD COLUMN `public_ip_address1` char(40) NOT NULL COMMENT 'the public ip address';
4244
UPDATE user_ip_address SET public_ip_address1 = INET_NTOA(public_ip_address);

0 commit comments

Comments
 (0)