function drupal_set_installed_schema_version in Drupal 4
Same name and namespace in other branches
- 8 core/includes/schema.inc \drupal_set_installed_schema_version()
- 5 includes/install.inc \drupal_set_installed_schema_version()
- 6 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()
- 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
File
- includes/
install.inc, line 78
Code
function drupal_set_installed_schema_version($module, $version) {
db_query("UPDATE {system} SET schema_version = %d WHERE name = '%s'", $version, $module);
}