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