You are here

function progress_update_7000 in Background Process 8

Implemets for Major version upgrade of Drupal.

File

progress/progress.install, line 66
Installation file for the Progress module.

Code

function progress_update_7000(&$context) {
  $schema_version = db_query("SELECT schema_version FROM {system} WHERE name = 'progress'")
    ->fetchField();
  if ($schema_version > 0 && $schema_version < 7000) {
    $context['sandbox']['major_version_upgrade'] = [
      7101 => TRUE,
    ];
  }
}