You are here

function workflow_fields_update_1 in Workflow Fields 7

Same name and namespace in other branches
  1. 5 workflow_fields.install \workflow_fields_update_1()
  2. 6 workflow_fields.install \workflow_fields_update_1()

@file Install, update, and uninstall functions for the workflow_fields module.

File

./workflow_fields.install, line 7
Install, update, and uninstall functions for the workflow_fields module.

Code

function workflow_fields_update_1() {
  $ret = array();
  db_add_field($ret, 'workflow_fields', 'rid', array(
    'type' => 'int',
    'not null' => TRUE,
    'default' => '-1',
  ));
  db_drop_primary_key($ret, 'workflow_fields');
  db_add_primary_key($ret, 'workflow_fields', array(
    'sid',
    'rid',
  ));
  return $ret;
}