You are here

function workflow_update_4 in Workflow 6

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

File

./workflow.install, line 195

Code

function workflow_update_4() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysqli':
    case 'mysql':
      db_query('LOCK TABLES {sequences} WRITE');
      $ret[] = _workflow_fix_seq('workflows', '{workflows}_wid');
      $ret[] = _workflow_fix_seq('workflow_state', '{workflow_states}_sid');
      $ret[] = _workflow_fix_seq('workflow_transitions', '{workflow_transitions}_tid');
      db_query('UNLOCK TABLES');
      break;
  }
  return $ret;
}