function drupal_set_installed_schema_version in Drupal 6
Same name and namespace in other branches
- 8 core/includes/schema.inc \drupal_set_installed_schema_version()
- 4 includes/install.inc \drupal_set_installed_schema_version()
- 5 includes/install.inc \drupal_set_installed_schema_version()
- 7 includes/install.inc \drupal_set_installed_schema_version()
- 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_uninstall_module in includes/
install.inc - Calls the uninstall function and updates the system table for a given module.
- system_update_6029 in modules/
system/ system.install - Enable the dblog module on sites that upgrade, since otherwise watchdog logging will stop unexpectedly.
- update_batch in ./
update.php - update_do_one in ./
update.php - Perform one update and store the results which will later be displayed on the finished page.
- _drupal_install_module in includes/
install.inc - Callback to install an individual profile module.
File
- 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);
}