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.
Hello!
I faced a lot of situations when only one update should be executed (for example, developing new update, updating module and receiving a problems with newest version and etc.). So, I implemented a new drush command "drush execute-update" ("drush exup") which executes chosen update using "drush updb" methods.
Some of used methods were refactored to add an "do not change schema version" option.
Comment | File | Size | Author |
---|---|---|---|
#5 | execute-update-drush-command-2703309-5.patch | 6.06 KB | Evgeny_Yudkin |
|
Comments
Comment #2
Evgeny_Yudkin CreditAttribution: Evgeny_Yudkin as a volunteer and at DrupalJedi commentedComment #3
Evgeny_Yudkin CreditAttribution: Evgeny_Yudkin as a volunteer and at DrupalJedi commentedComment #4
Evgeny_Yudkin CreditAttribution: Evgeny_Yudkin as a volunteer and at DrupalJedi commentedComment #5
Evgeny_Yudkin CreditAttribution: Evgeny_Yudkin as a volunteer and at DrupalJedi commentedJust removed one extra "else".
Comment #6
kala4ek@Evgeny,
You patch is pretty good but I think will be perfect if you add confirmation for non-last updates (Like "Schema version is 7005. Are you sure that you want to call devel_update_7002?").
Comment #7
moshe weitzman CreditAttribution: moshe weitzman at Acquia commentedThanks.
This should be its own Contrib. I wont accept it as part of devel or drush core since this is a very risky action.