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!
Let's make Drupal even better, together!
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Devel ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | Release date | |
|---|---|---|---|---|
| 1.0.0-alpha2 | Pre-release | Mar 28, 2024 | ||
| 1.0.0-alpha1 | Pre-release | Mar 25, 2024 | ||
| 1.x-dev | Dev | Mar 25, 2024 |