update_set_schema

update_set_schema($module, $schema_version)

Forces a module to a given schema version.

This function is rarely necessary.

Parameters

string $module: Name of the module.

string $schema_version: The schema version the module should be set to.

File

core/includes/update.inc, line 113
Drupal database update API.

Code

function update_set_schema($module, $schema_version) {
  \Drupal::keyValue('system.schema')->set($module, $schema_version);
  // system_list_reset() is in module.inc but that would only be available
  // once the variable bootstrap is done.
  require_once __DIR__ . '/module.inc';
  system_list_reset();
}
doc_Drupal
2016-10-29 09:51:27
Comments
Leave a Comment

Please login to continue.