function drupal_set_installed_schema_version
7.x install.inc | drupal_set_installed_schema_version($module, $version) |
6.x install.inc | 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 calls to drupal_set_installed_schema_version()
- drupal_uninstall_module in drupal-6.x/
includes/ install.inc - Calls the uninstall function and updates the system table for a given module.
- system_update_6029 in drupal-6.x/
modules/ system/ system.install - Enable the dblog module on sites that upgrade, since otherwise watchdog logging will stop unexpectedly.
- update_batch in drupal-6.x/
update.php - update_do_one in drupal-6.x/
update.php - Perform one update and store the results which will later be displayed on the finished page.
- _drupal_install_module in drupal-6.x/
includes/ install.inc - Callback to install an individual profile module.
File
- drupal-6.x/
includes/ install.inc, line 97
Code
function drupal_set_installed_schema_version($module, $version) {
db_query("UPDATE {system} SET schema_version = %d WHERE name = '%s'", $version, $module);
}