You are here

function casetracker_update_21 in Case Tracker 5

File

./casetracker.install, line 559

Code

function casetracker_update_21() {
  $ret = array();
  drupal_set_message('test before switch');
  drupal_set_message($GLOBALS['db_type']);
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {casetracker_case_states} ADD `weight` TINYINT(4) NOT NULL DEFAULT '0'");
      $ret[] = update_sql("ALTER TABLE {casetracker_case_states} ADD INDEX (`weight`)");
      drupal_set_message('test in switch');
      break;
  }
  return $ret;
}