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_modules in includes/install.inc
Calls the uninstall function and updates the system table for a given module.
system_install in modules/system/system.install
Implements hook_install().
update_batch in includes/update.inc
Start the database update batch process.
update_do_one in includes/update.inc
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 install profile module.

Code

includes/install.inc, line 161

<?php
function drupal_set_installed_schema_version($module, $version) {
  db_update('system')
    ->fields(array('schema_version' => $version))
    ->condition('name', $module)
    ->execute();
}
?>
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.