drupal_set_installed_schema_version

Versions
mediamosa-21
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.

▾ 6 functions call drupal_set_installed_schema_version()

devel_reinstall_submit in sites/all/modules/devel/devel.module
Process reinstall menu form submissions.
drupal_uninstall_modules in includes/install.inc
Calls the uninstall function and updates the system table for a given module.
module_enable in includes/module.inc
Enable a given list of modules.
system_install in modules/system/system.install
Implements hook_install().
update_batch in includes/update.inc
Start the database update batch process.
update_do_one in includes/update.inc
Perform one update and store the results for display on finished page.

Code

includes/install.inc, line 172

<?php
function drupal_set_installed_schema_version($module, $version) {
  db_update('system')
    ->fields(array('schema_version' => $version))
    ->condition('name', $module)
    ->execute();
}
?>