Created
November 4, 2013 14:51
-
-
Save siliconmeadow/7303622 to your computer and use it in GitHub Desktop.
Code to do string replacement on columns in a table. Particularly useful for filename path changes in Drupal 6. Possibly D7?
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
UPDATE files | |
SET files.filepath | |
= | |
REPLACE(files.filepath,'sites/jarp.aroq.com/files','sites/default/files'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment