Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: cafuego commentedWouldn't it just :-)
Comment #2
cafuego CreditAttribution: 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 frog
drush sar --blocks chicken egg
You 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 CreditAttribution: cafuego commentedIt changes the target version.