This module provides helper tools, to help with various field changes on the field storage, config, instance and database level.

Hopefully this will one day be solved in core for better DX: #937442: Field type modules cannot maintain their field schema (field type schema change C(R)UD is needed)
Until that, this module offers its help for developers :)

Motivation

Currently in Drupal, there is no proper way, to modify existing fields on field storage / database level. For example, if you want to modify the (machine) name of a given field or update the storage definition in some other way. Data needs to be changed on field storage, field config, field instance and database level.

This developer module tries to do the heavy lifting for your field conversion, so you only have to make some minor adjustments

Known Problems

General

  • The module currently does NOT support migrating "entity_reference" fields.

Rename command specific

  • Field conversion currently moves the English translation to the original field config (even if English is not set as the original field language) and deletes any existing translations. This might be a core bug.
  • "third_party_settings" and other field config keys might still relate to old field_names

Features

  • Rename field to given field name ✅
  • Update field to latest field definition ❌
  • Remove field schema column ❌
  • Add field schema column ❌

Supporting this module

Support DROWL's ♥ FOSS work on this module on OpenCollective!

Drupal and this module are FOSS. However, it takes dedicated people to develop and maintain. And they need YOU to give back!

We're committed to building and maintaining Drupal modules that benefit the entire community.

Supporting us on OpenCollective helps us continue to improve, innovate and contribute to Drupal's future. Every pledge makes a difference!

If this module has helped you, we would be very grateful for your donation to support its further development and maintenance.

Support our FOSS development ♥️

You can also speed up the development of features or bugfixes you'd love to see, by sponsoring and giving back!

Sponsor a feature or bugfix 🚀

Let's make Drupal even better, together!

Supporting organizations: 
proudly developed and sponsored this modules initial implementation for the Drupal community

Project information

Releases