drupal_set_installed_schema_version

  1. drupal
    1. 4.7
    2. 5
    3. 6 install.inc
    4. 7 install.inc
Versions
4.7 – 7 drupal_set_installed_schema_version($module, $version)

Update the installed version information for a module.

Parameters

$module A module name.

$version The new schema version.

▾ 5 functions call drupal_set_installed_schema_version()

system_modules_submit in modules/system.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
user_register_submit in modules/user.module

Code

includes/install.inc, line 79

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