function workflow_update_6100 in Workflow 6
Same name and namespace in other branches
- 6.2 workflow.install \workflow_update_6100()
File
- ./
workflow.install, line 384
Code
function workflow_update_6100() {
$ret = array();
db_add_field($ret, 'workflows', 'options', array(
'type' => 'text',
'size' => 'big',
'not null' => FALSE,
));
// Seed existing workflows with the behavior of showing the comment field.
$default = serialize(array(
'comment_log_node' => 1,
'comment_log_tab' => 1,
));
$query_result = db_query("UPDATE {workflows} SET options = '%s'", $default);
$ret[] = array(
'success' => $query_result !== FALSE,
'query' => "UPDATE {workflows} SET options = '{$default}'",
);
return $ret;
}