function drupal_set_installed_schema_version

8.x drupal_set_installed_schema_version($module, $version)

Updates the installed version information for a module.


string $module: A module name.

string $version: The new schema version.

Related topics

3 calls to drupal_set_installed_schema_version()
ModuleHandler::enable in drupal/core/lib/Drupal/Core/Extension/ModuleHandler.php
Enables or installs a given list of modules.
update_batch in drupal/core/includes/
Starts the database update batch process.
update_do_one in drupal/core/includes/
Performs one update and stores the results for display on the results page.


drupal/core/includes/, line 197
Schema API handling functions.


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);