You are here

function progress_update_7101 in Progress 7

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

Change schema to SQL 99 compliance

File

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

Code

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