drupal_set_installed_schema_version($module, $version)
Updates the installed version information for a module.
Parameters
string $module: A module name.
string $version: The new schema version.
Related topics
- Schema API
- API to handle database schemas.
File
- core/includes/schema.inc, line 105
- Schema API handling functions.
Code
function drupal_set_installed_schema_version($module, $version) { \Drupal::keyValue('system.schema')->set($module, $version); // Reset the static cache of module schema versions. drupal_get_installed_schema_version(NULL, TRUE); }
Please login to continue.