You are here

function protected_node_update_6002 in Protected Node 6

Implementation of hook_update_N().

File

./protected_node.install, line 322

Code

function protected_node_update_6002() {
  $ret = array();

  // change the nid field from a serial to an int
  $field = array(
    'description' => t('The primary identifier for a node'),
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
  );
  db_change_field($ret, 'protected_nodes', 'nid', 'nid', $field);
  return $ret;
}