diff --git a/devops/domain_db_fix.txt b/devops/domain_db_fix.txt index a6feb6b..50068b8 100644 --- a/devops/domain_db_fix.txt +++ b/devops/domain_db_fix.txt @@ -8,35 +8,8 @@ wp_domain_mapping wp_site -######FOR QA ENV - -update wp_options set option_value = "https://qa.lawcarta.net" where option_id = 1 limit 1; -update wp_options set option_value = "https://qa.lawcarta.net" where option_id = 2 limit 1; - -update wp_2_options set option_value = "https://qa.livecarta.com" where option_id = 1 limit 1; -update wp_2_options set option_value = "https://qa.lawcarta.net/livecarta" where option_id = 2 limit 1; - -update wp_blogs set domain = "qa.lawcarta.net" where blog_id = 1 limit 1; -update wp_blogs set domain = "qa.lawcarta.net" where blog_id = 2 limit 1; - -update wp_domain_mapping set domain = "qa.livecarta.com" where blog_id = 2 limit 1; - -update wp_site set domain = "qa.lawcarta.net" where id =1 limit 1; +Run domain_db_fix.sql script from environment -######FOR TEST QA ENV - -update wp_options set option_value = "https://dev1.lawcarta.loc" where option_id = 1 limit 1; -update wp_options set option_value = "https://dev1.lawcarta.loc" where option_id = 2 limit 1; - -update wp_2_options set option_value = "https://dev1.livecarta.loc" where option_id = 1 limit 1; -update wp_2_options set option_value = "https://dev1.lawcarta.loc/livecarta" where option_id = 2 limit 1; - -update wp_blogs set domain = "dev1.lawcarta.loc" where blog_id = 1 limit 1; -update wp_blogs set domain = "dev1.lawcarta.loc" where blog_id = 2 limit 1; - -update wp_domain_mapping set domain = "dev1.livecarta.loc" where blog_id = 2 limit 1; - -update wp_site set domain = "dev1.lawcarta.loc" where id =1 limit 1; diff --git a/environments/qa/domain_db_fix.sql b/environments/qa/domain_db_fix.sql new file mode 100644 index 0000000..33e7551 --- /dev/null +++ b/environments/qa/domain_db_fix.sql @@ -0,0 +1,14 @@ +######FOR QA ENV + +update wp_options set option_value = "https://qa.lawcarta.net" where option_id = 1 limit 1; +update wp_options set option_value = "https://qa.lawcarta.net" where option_id = 2 limit 1; + +update wp_2_options set option_value = "https://qa.livecarta.com" where option_id = 1 limit 1; +update wp_2_options set option_value = "https://qa.lawcarta.net/livecarta" where option_id = 2 limit 1; + +update wp_blogs set domain = "qa.lawcarta.net" where blog_id = 1 limit 1; +update wp_blogs set domain = "qa.lawcarta.net" where blog_id = 2 limit 1; + +update wp_domain_mapping set domain = "qa.livecarta.com" where blog_id = 2 limit 1; + +update wp_site set domain = "qa.lawcarta.net" where id =1 limit 1; \ No newline at end of file diff --git a/environments/testdev/domain_db_fix.sql b/environments/testdev/domain_db_fix.sql new file mode 100644 index 0000000..e28c229 --- /dev/null +++ b/environments/testdev/domain_db_fix.sql @@ -0,0 +1,14 @@ +######FOR TEST DEV ENV + +update wp_options set option_value = "https://dev1.lawcarta.loc" where option_id = 1 limit 1; +update wp_options set option_value = "https://dev1.lawcarta.loc" where option_id = 2 limit 1; + +update wp_2_options set option_value = "https://dev1.livecarta.loc" where option_id = 1 limit 1; +update wp_2_options set option_value = "https://dev1.lawcarta.loc/livecarta" where option_id = 2 limit 1; + +update wp_blogs set domain = "dev1.lawcarta.loc" where blog_id = 1 limit 1; +update wp_blogs set domain = "dev1.lawcarta.loc" where blog_id = 2 limit 1; + +update wp_domain_mapping set domain = "dev1.livecarta.loc" where blog_id = 2 limit 1; + +update wp_site set domain = "dev1.lawcarta.loc" where id =1 limit 1;