You are here

function progress_update_7101 in Progress 8

Same name and namespace in other branches
  1. 7 progress.install \progress_update_7101()

Implemets to Change schema to SQL 99 compliance

File

./progress.install, line 76
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 6.x
    return;
  }
  db_change_field('progress', 'start', 'start_stamp', array(
    'description' => 'Start time in unix timestamp',
    'type' => 'float',
    'size' => 'big',
    'not null' => TRUE,
    'default' => 0,
  ));
  db_change_field('progress', 'end', 'end_stamp', array(
    'description' => 'End time in unix timestamp',
    'type' => 'float',
    'size' => 'big',
    'not null' => TRUE,
    'default' => 0,
  ));
  db_change_field('progress', 'current', 'current_stamp', array(
    'description' => 'Current time in unix timestamp',
    'type' => 'float',
    'size' => 'big',
    'not null' => TRUE,
    'default' => 0,
  ));
}