You are here

function progress_update_7101 in Background Process 8

Implemets to Change schema to SQL 99 compliance.

File

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

Code

function progress_update_7101(&$context) {
  if (!empty($context['sandbox']['major_version_upgrade'][7101])) {

    // This udate is already part of latest.
    return;
  }
  db_change_field('progress', 'start', 'start_stamp', [
    'description' => 'Start time in unix timestamp',
    'type' => 'float',
    'size' => 'big',
    'not null' => TRUE,
    'default' => 0,
  ]);
  db_change_field('progress', 'end', 'end_stamp', [
    'description' => 'End time in unix timestamp',
    'type' => 'float',
    'size' => 'big',
    'not null' => TRUE,
    'default' => 0,
  ]);
  db_change_field('progress', 'current', 'current_stamp', [
    'description' => 'Current time in unix timestamp',
    'type' => 'float',
    'size' => 'big',
    'not null' => TRUE,
    'default' => 0,
  ]);
}