function workflow_update_7000 in Workflow 7
Same name and namespace in other branches
- 7.2 workflow.install \workflow_update_7000()
Table update from 6 to 7. Adding a unique key for fields (already held unique in code).
File
- ./
workflow.install, line 367 - Install, update and uninstall functions for the workflow module.
Code
function workflow_update_7000() {
if (!db_index_exists('workflows', 'name')) {
db_add_unique_key('workflows', 'name', array(
'name',
));
}
if (!db_index_exists('workflow_states', 'wid_state')) {
db_add_unique_key('workflow_states', 'wid_state', array(
'wid',
'state',
));
}
}