function workflow_update_7003 in Workflow 7
Same name and namespace in other branches
- 7.2 workflow.install \workflow_update_7003()
Add Entity field capabilities to workflow_scheduled_transition table.
File
- ./
workflow.install, line 413 - Install, update and uninstall functions for the workflow module.
Code
function workflow_update_7003() {
db_add_field('workflow_scheduled_transition', 'entity_type', array(
'description' => 'The type of entity this transition belongs to.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
));
db_add_field('workflow_scheduled_transition', 'field_name', array(
'description' => 'The name of the field the transition relates to.',
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => '',
));
db_add_field('workflow_scheduled_transition', 'language', array(
'description' => 'The {languages}.language of the entity.',
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => '',
));
db_add_field('workflow_scheduled_transition', 'delta', array(
'description' => 'The sequence number for this data item, used for multi-value fields',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
));
db_drop_index('workflow_scheduled_transition', 'nid');
db_add_index('workflow_scheduled_transition', 'entity_id', array(
'entity_type',
'nid',
));
db_add_index('workflow_scheduled_transition', 'entity_type', array(
'entity_type',
));
}