MySQL Find and Replace Drupal filepaths in files table


/ Published in: SQL
Save to your folder(s)

This is useful if you are changing a Drupal site's file upload path and/or changing from a private to a public file store.


Copy this code and paste it in your HTML
  1. UPDATE files SET filepath = REPLACE(filepath,'path/to/search','path/to/replace');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.