function 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

5 calls to drupal_set_installed_schema_version()
ModuleHandler::enable in drupal/core/lib/Drupal/Core/Extension/ModuleHandler.php
Enables or installs a given list of modules.
UpdateScriptTest::testRequirements in drupal/core/modules/system/lib/Drupal/system/Tests/Update/UpdateScriptTest.php
Tests that requirements warnings and errors are correctly displayed.
UpdateScriptTest::testSuccessfulUpdateFunctionality in drupal/core/modules/system/lib/Drupal/system/Tests/Update/UpdateScriptTest.php
Tests update.php after performing a successful update.
update_batch in drupal/core/includes/update.inc
Starts the database update batch process.
update_do_one in drupal/core/includes/update.inc
Performs one update and stores the results for display on the results page.

File

drupal/core/includes/schema.inc, line 197
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);
}