Updates the installed version information for a module.
string $module: A module name.
string $version: The new schema version.
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);
}