You are here

function system_update_6023 in Drupal 6

Related topics

File

modules/system/system.install, line 2051

Code

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

  // nid is DEFAULT 0
  db_drop_index($ret, 'node_revisions', 'nid');
  db_change_field($ret, 'node_revisions', 'nid', 'nid', array(
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  ));
  db_add_index($ret, 'node_revisions', 'nid', array(
    'nid',
  ));
  return $ret;
}