Provide eca:update functionality as a service

Created on 23 January 2025, 6 days ago

Problem/Motivation

If the config footprint of a plugin gets changed, e.g. a new field gets added or the type of an existing one gets changed, then we recommend to run drush eca:update to update all existing models accordingly.

Some maintainers want to automate that with an update hook, but writing that code is cumbersome.

Proposed resolution

Provide that code from the drush command as a service, let drush call that service instead then. The same service can then be called by update hooks as well.

Feature request
Status

Active

Version

2.1

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024