You are here

function progress_update_6101 in Progress 6

Change schema to SQL 99 compliance

File

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

Code

function progress_update_6101() {
  $ret = array();
  db_change_field($ret, 'progress', 'start', 'start_stamp', array(
    'description' => 'Start time in unix timestamp',
    'type' => 'float',
    'size' => 'big',
    'not null' => TRUE,
    'default' => 0,
  ));
  db_change_field($ret, 'progress', 'end', 'end_stamp', array(
    'description' => 'End time in unix timestamp',
    'type' => 'float',
    'size' => 'big',
    'not null' => TRUE,
    'default' => 0,
  ));
  db_change_field($ret, 'progress', 'current', 'current_stamp', array(
    'description' => 'Current time in unix timestamp',
    'type' => 'float',
    'size' => 'big',
    'not null' => TRUE,
    'default' => 0,
  ));
  return $ret;
}