Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem/Motivation
Currently running delete:all-delete-entities under Drush 10.x errors out when attempting use removed drush methods(drush_get_option, drush_set_error).
Steps to reproduce
Run 'drush delete:all-delete-entities...' with type and bundle options.
Proposed resolution
replace 'drush_get_option' with 'Drush::input()->hasOption('...')'
and 'drush_set_error' with 'Drush::logger()->error(...)'
see attached patch
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#4 | 3200447-3.patch | 2.32 KB | sdrong |
Comments
Comment #2
sdrong CreditAttribution: sdrong at University of California commentedComment #3
sdrong CreditAttribution: sdrong at University of California commentedComment #4
sdrong CreditAttribution: sdrong at University of California commentedComment #5
uniquename CreditAttribution: uniquename commentedWorks fine for me.
Comment #6
nicholasThompsonWorked for me too - couldn't delete taxonomy_terms before, but with patch #3 I can.
Comment #8
dipakmdhrm CreditAttribution: dipakmdhrm as a volunteer and at QED42 for Drupal India Association commented