function _update_fix_missing_schema

Same name and namespace in other branches
  1. 11.x core/includes/update.inc \_update_fix_missing_schema()
  2. 10 core/includes/update.inc \_update_fix_missing_schema()
  3. 9 core/includes/update.inc \_update_fix_missing_schema()
  4. 8.9.x core/includes/update.inc \_update_fix_missing_schema()

Helper to detect and fix 'missing' schema information.

Repairs the case where a module has no schema version recorded. This has to be done prior to updates being run, otherwise the update system would detect and attempt to run all historical updates for a module.

Deprecated

in drupal:11.5.0 and is removed from drupal:13.0.0. This function was for internal use only and has no replacement.

See also

https://www.drupal.org/node/3013060

File

core/includes/update.inc, line 59

Code

function _update_fix_missing_schema() : void {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.5.0 and is removed from drupal:13.0.0. This function was for internal use only and has no replacement. See https://www.drupal.org/node/3013060', E_USER_DEPRECATED);
  \Drupal::service(DatabaseUpdate::class)->fixMissingSchema();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.