You are here

function system_post_update_schema_version_int in Drupal 9

Update schema version to integers.

See also

https://www.drupal.org/project/drupal/issues/3143713

File

core/modules/system/system.post_update.php, line 163
Post update functions for System.

Code

function system_post_update_schema_version_int() {
  $registry = \Drupal::keyValue('system.schema');
  foreach ($registry
    ->getAll() as $name => $schema) {
    if (is_string($schema)) {
      $registry
        ->set($name, (int) $schema);
    }
  }
}