Introduction to the Update API for Drupal 8

What you need to update

You need to provide code that performs an update to stored data whenever your module makes a change to its data model. A data model change is any change that makes stored data on an existing site incompatible with that site's updated codebase. In Drupal 8, there are several ways your data model can change, described in the following sections.

Content entity and field changes

Configurable fields can be created programmatically this way:

Subscribe with RSS Subscribe to RSS - create table