Advertising sustains the DA. Ads are hidden for members. Join today
Drupal APIs
- Access Policy API
- AJAX API
- Authentication API
- Batch API
- Block API
- Cache API
- (deprecated) CKEditor 4 API
- CKEditor 5 API
- Command-Line Interface (CLI) API
- Configuration API
- Database API
- Entity API
- Filter API
- Form API
- HTMX
- Icon API
- JavaScript API
- Layout API
- Logging API
- Menu API
- Middleware API
- Migrate API
- Plugin API
- RESTful Web Services API
- Render API
- Responses
- Routing system
- Runtime Assertions
- Serialization API
- Services and dependency injection
- State API
- Text Editor API
- Token API
- Translation API
- Typed Data API
- Update API
Update API
This guide is about the Update API, which allows modules to provide code that will update their data models between minor versions and releases within one major version of Drupal.
Introduction to the Update API
Introduction to the Update API.
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
How to write update functions handling field/entity type definition changes affecting schema
Writing Automated Update Tests
If your module is making a data model change related to configuration, then you need to properly update your data model (as described on