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,
With Drupal and Drush 8 there is a new option for the drush updb command.
It is "--entity-updates", which do "Run automatic entity schema updates at the end of any update hooks. Defaults to --no-entity-updates."
Is it already planned to have this feature or can I try to make a patch for that?
Comment | File | Size | Author |
---|---|---|---|
#8 | hosting_tasks_extra-update_entity-2830557-8.patch | 2.91 KB | Grimreaper |
#5 | support_for-2830557-5.patch | 2.42 KB | helmo |
#3 | hosting_tasks_extra-update_entity-2830557-3.patch | 2.7 KB | Grimreaper |
Comments
Comment #2
colan+1.
Please make sure that the option is only added if the version of Drush supports it. I'm quite sure it'll fail otherwise.
Comment #3
GrimreaperHere is a first patch.
I am currently searching how to verify the Drush compatibility to display or not the checkbox.
Comment #4
GrimreaperI also did not see the Drupal major version stored for the site or the platform.
I think to be able to add condition on the checkbox, we need to store the Drush version somewhere and also the Drupal major version in the platform or in the site.
For the moment I will stay on my first patch and will see another issue.
Comment #5
helmo CreditAttribution: helmo at Initfour websolutions for Aegir Cooperative commentedDrush 8 is the first version that supports Drupal8 anyway ... so I see no need for an extra check there.
Checking for the drupal core version is possible though ... see patch.
Comment #6
GrimreaperHello,
Thanks @helmo. I tested your patch and it is ok.
Comment #7
colanMight want to do ">= 8" here. Looks good otherwise.
Comment #8
GrimreaperThanks for the review.
Here is a patch that take @colan suggestion into account.
Comment #11
helmo CreditAttribution: helmo at Initfour websolutions for Aegir Cooperative commentedadded #8