1.20.x install.inc | backdrop_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 192 - API functions for installing modules and themes.
Code
function backdrop_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.
backdrop_get_installed_schema_version(NULL, TRUE);
}