I really should have figured out how to do this sooner

A MySQL Search and Replace.


update node_revisions set body = replace (body, 'photo=old_id', 'photo=new_id');

No more select, fetch, regex, update just to change a little bit of content.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <b> <blockquote>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.