drupal_set_installed_schema_version

drupal_set_installed_schema_version($module, $version)

Updates the installed version information for a module.

Parameters

string $module: A module name.

string $version: The new schema version.

Related topics

Schema API
API to handle database schemas.

File

core/includes/schema.inc, line 105
Schema API handling functions.

Code

function drupal_set_installed_schema_version($module, $version) {
  \Drupal::keyValue('system.schema')->set($module, $version);
  // Reset the static cache of module schema versions.
  drupal_get_installed_schema_version(NULL, TRUE);
}
doc_Drupal
2016-10-29 09:03:20
Comments
Leave a Comment

Please login to continue.