You are here

function drupal_set_installed_schema_version in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/includes/schema.inc \drupal_set_installed_schema_version()

Updates the installed version information for a module.

Parameters

string $module: A module name.

string $version: The new schema version.

Related topics

8 calls to drupal_set_installed_schema_version()
DbUpdateController::triggerBatch in core/modules/system/src/Controller/DbUpdateController.php
Starts the database update batch process.
ModuleInstaller::install in core/lib/Drupal/Core/Extension/ModuleInstaller.php
Installs a given list of modules.
StatusTest::testStatusPage in core/modules/system/src/Tests/System/StatusTest.php
Tests that the status page returns.
UpdateScriptTest::testRequirements in core/modules/system/src/Tests/Update/UpdateScriptTest.php
Tests that requirements warnings and errors are correctly displayed.
UpdateScriptTest::testSuccessfulUpdateFunctionality in core/modules/system/src/Tests/Update/UpdateScriptTest.php
Tests update.php after performing a successful update.

... See full list

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);
}