Created
January 29, 2016 20:24
-
-
Save szbl/946d1066e4bda0a29715 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Run this on the cloned staging database (to become production) | |
UPDATE wp_options | |
SET option_value = REPLACE( option_value, 'http://stage.stuncreative.com', 'http://www.stuncreative.com' ) | |
WHERE option_value LIKE 'http://%'; | |
UPDATE wp_posts | |
SET post_content = REPLACE( post_content, 'http://stage.stuncreative.com', 'http://www.stuncreative.com' ); | |
UPDATE wp_postmeta | |
SET meta_value = REPLACE( meta_value, 'http://stage.stuncreative.com', 'http://www.stuncreative.com' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment