- Issue created by @tyler36
- πΊπΈUnited States cilefen
I donβt think it is possible to assume Drush exists, or even that every site would want this. I am voting βnoβ for this feature in this form.
Every siteβs Composer configuration is customized so anyone is free to add this if they wish.
- π―π΅Japan tyler36 Osaka
My original post contained an example script, as stated. It was not intended to be included as-is. Many sites do not use or need drush.
The request is to automate a manually step which helps improve the developer experience.
The current experience:
-composer update
- Login to site
- Visit '/admin/reports'
- Click "status report"
- Scroll down to check for Database updates
- If exists, click `update`A suggested solution is to use composer's command event scripts.
Suggested experience:
-composer update
- πΊπΈUnited States cilefen
There is a major initiative to automate updates β .
I suggest we close this as a duplicate.
- Status changed to Closed: duplicate
about 1 year ago 11:06am 28 June 2023 - π¬π§United Kingdom longwave UK
As @cilefen says there is no one size fits all here; you are free to add such a command to your composer.json but this will not work for everyone in all environments. We have a full set of documentation on updating Drupal as there are many options: https://www.drupal.org/docs/updating-drupal β - please refer to this to figure out which is the best way for your setup.
The Automatic Updates initiative hopes to eventually solve this in a better way for some users, closing as duplicate.