You are here

function state_flow_update_7002 in State Machine 7.2

Add primary index to node_revision_states_history.

File

modules/state_flow/state_flow.install, line 75
Install file for the State Flow module.

Code

function state_flow_update_7002() {
  db_add_field('node_revision_states_history', 'nrshid', array(
    'description' => 'The primary identifier for this record.',
    'type' => 'serial',
    'unsigned' => TRUE,
    'not null' => TRUE,
  ), array(
    'primary key' => array(
      'nrshid',
    ),
  ));
}