Same name and namespace in other branches
  1. 4.7.x includes/install.inc \drupal_set_installed_schema_version()
  2. 6.x includes/install.inc \drupal_set_installed_schema_version()
  3. 7.x includes/install.inc \drupal_set_installed_schema_version()
  4. 8.9.x core/includes/schema.inc \drupal_set_installed_schema_version()
  5. 9 core/includes/schema.inc \drupal_set_installed_schema_version()

Update the installed version information for a module.

Parameters

$module: A module name.

$version: The new schema version.

5 calls to drupal_set_installed_schema_version()
drupal_install_modules in includes/install.inc
Calls the install function and updates the system table for a given list of modules.
drupal_uninstall_module in includes/install.inc
Calls the uninstall function and updates the system table for a given module.
update_data in ./update.php
Perform one update and store the results which will later be displayed on the finished page.
update_fix_schema_version in ./update.php
If the schema version for Drupal core is stored in the variables table (4.6.x and earlier) move it to the schema_version column of the system table.
update_update_page in ./update.php

File

includes/install.inc, line 90

Code

function drupal_set_installed_schema_version($module, $version) {
  db_query("UPDATE {system} SET schema_version = %d WHERE name = '%s'", $version, $module);
}