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()

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.

Code

includes/install.inc, line 97

<?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.