function update_set_schema in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/includes/update.inc \update_set_schema()
Forces a module to a given schema version.
This function is rarely necessary.
Parameters
string $module: Name of the module.
string $schema_version: The schema version the module should be set to.
File
- core/
includes/ update.inc, line 113 - Drupal database update API.
Code
function update_set_schema($module, $schema_version) {
\Drupal::keyValue('system.schema')
->set($module, $schema_version);
// system_list_reset() is in module.inc but that would only be available
// once the variable bootstrap is done.
require_once __DIR__ . '/module.inc';
system_list_reset();
}