function workflow_update_6 in Workflow 6
Same name and namespace in other branches
- 5.2 workflow.install \workflow_update_6()
- 5 workflow.install \workflow_update_6()
- 6.2 workflow.install \workflow_update_6()
File
- ./
workflow.install, line 230
Code
function workflow_update_6() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysqli':
case 'mysql':
$ret[] = update_sql(<<<QUERY
CREATE TABLE {workflow_scheduled_transition} (
nid int(10) unsigned NOT NULL default '0',
old_sid int(10) unsigned NOT NULL default '0',
sid int(10) unsigned NOT NULL default '0',
scheduled int(10) unsigned NOT NULL default '0',
comment longtext,
KEY nid (nid)
) /*!40100 DEFAULT CHARACTER SET utf8 */;
QUERY
);
break;
case 'pgsql':
$ret[] = update_sql(<<<QUERY
CREATE TABLE {workflow_scheduled_transition} (
nid integer NOT NULL default '0',
old_sid integer NOT NULL default '0',
sid integer NOT NULL default '0',
scheduled integer NOT NULL default '0',
comment text
);
QUERY
);
$ret[] = update_sql(<<<QUERY
CREATE INDEX {workflow_scheduled_transition}_nid_idx ON {workflow_scheduled_transition}(nid);
QUERY
);
break;
}
return $ret;
}