Drush commands (addColumn() & removeColumn() for updater service

Created on 4 May 2025, 5 days ago

Problem/Motivation

The updater service is a powerful feature that allows adding/removing columns to/from fields with existing data. One of the main challenges with field api is that once a field has data in its tables, the field storage settings become locked in the UI and no longer editable. As the updater service provides methods to handle these updates via hooks, it would also be helpful for developers to call these same methods via Drush particularly in local development.

Proposed resolution

Add a custom_field.drush.services.yml file.
Add a commands file that incorporates the updater service for addColumn() & removeColumn() methods. Consider some helper commands to get data type table and also prompt hints for missing required params.

✨ Feature request
Status

Active

Version

3.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States apmsooner

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024