function drupal_set_installed_schema_version

8.x schema.inc 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

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/update.inc
Starts the database update batch process.
update_do_one in drupal/core/includes/update.inc
Performs one update and stores the results for display on the results page.

File

drupal/core/includes/schema.inc, line 197
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);
}