drupal_set_installed_schema_version

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 78

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

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.