Needs review
Project:
Drush Search & Replace
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
16 Sep 2013 at 12:22 UTC
Updated:
19 Sep 2013 at 08:44 UTC
It would be great if we could pass in argument(s) to limit the query on specific field(s).
drush sar --field=field_random_text string_to_replace replacement_string
Comments
Comment #1
cafuego commentedWouldn't it just :-)
Comment #2
cafuego commentedI've just pushed provisional support for this to the 7.x-2.x branch. Please give it a try.
drush sar --fields=foo,bar,frog weasel frogdrush sar --blocks chicken eggYou cannot perform the replace on a limited set of fields and all blocks at the same time, though if you specify neither blocks nor fields it will process everything as per what it used to do anyway.
Comment #3
cafuego commentedIt changes the target version.