From 36c559882a7b00e845c6456a28df0c942dee0314 Mon Sep 17 00:00:00 2001 From: gregory-p Date: Fri, 5 Apr 2019 16:12:57 +0300 Subject: [PATCH] db fix instruction --- devops/domain_db_fix.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 devops/domain_db_fix.txt diff --git a/devops/domain_db_fix.txt b/devops/domain_db_fix.txt new file mode 100644 index 0000000..06a9f56 --- /dev/null +++ b/devops/domain_db_fix.txt @@ -0,0 +1,22 @@ + +Update wp domain names in 5 db tables: + +wp_options +wp_2_options +wp_blogs +wp_domain_mapping +wp_site + + +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