function workflow_update_5201 in Workflow 5.2
Same name and namespace in other branches
- 6.2 workflow.install \workflow_update_5201()
- 6 workflow.install \workflow_update_5201()
File
- ./
workflow.install, line 458
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;
}