Introduction to the Update API for Drupal 8
Introduction to the Update API for Drupal 8.
Updating Configuration
If your module is making a data model change related to configuration, then you need to properly update your data model. The three steps are
Updating Database Schema and/or Data in Drupal
How to update your data model if making changes to the database schema.
Updating Entities and Fields in Drupal 8
How to write update functions handling field/entity type definition changes affecting schema
Writing Automated Update Tests for Drupal 8 (or later)
If your module is making a data model change related to configuration, then you need to properly update your data model (as described on
Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.