Created
March 10, 2011 06:57
-
-
Save adhipg/863677 to your computer and use it in GitHub Desktop.
SQL to update the posts table when we migrate websites from one site to another. Corrects the URLs of the attachments
This file contains 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
UPDATE wp_posts SET post_content = REPLACE (post_content, 'oldlink', 'newlink'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment