You are here

function workflow_update_5202 in Workflow 5.2

Same name and namespace in other branches
  1. 6.2 workflow.install \workflow_update_5202()
  2. 6 workflow.install \workflow_update_5202()

File

./workflow.install, line 476

Code

function workflow_update_5202() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysqli':
    case 'mysql':
      $ret[] = update_sql("ALTER TABLE {workflow_states} ADD status TINYINT NOT NULL DEFAULT '1'");
      break;
    case 'pgsql':
      $ret[] = update_sql("ALTER TABLE {workflow_states} ADD status SMALLINT NOT NULL DEFAULT '1'");
      break;
  }
  return $ret;
}