You are here

function workflow_update_5201 in Workflow 6

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

File

./workflow.install, line 304

Code

function workflow_update_5201() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysqli':
    case 'mysql':
      $ret[] = update_sql("ALTER TABLE {workflow_node_history} ADD hid INT NOT NULL AUTO_INCREMENT PRIMARY KEY");
      break;
    case 'pgsql':
      $ret[] = update_sql("ALTER TABLE {workflow_node_history} ADD hid SERIAL");
      break;
  }
  return $ret;
}