/ Published in: SQL
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.
Expand |
Embed | Plain Text
UPDATE files SET filepath = REPLACE(filepath,'path/to/search','path/to/replace');
Comments
Subscribe to comments
You need to login to post a comment.

Thanks, Shrop. This worked like a charm. When using the audio module, the same query works on the audio_file table, too.
also works with picture field in users table.