On this page
function drupal_set_installed_schema_version
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.
File
- includes/install.inc, line 177
- API functions for installing modules and themes.
Code
function drupal_set_installed_schema_version($module, $version) {
db_update('system')
->fields(array('schema_version' => $version))
->condition('name', $module)
->execute();
// Reset the static cache of module schema versions.
drupal_get_installed_schema_version(NULL, TRUE);
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!install.inc/function/drupal_set_installed_schema_version/7.x