Projet

Général

Profil

Révision b0dc3a2e

Ajouté par Julien Enselme il y a plus de 7 ans

Update to Drupal 7.52

Voir les différences:

drupal7/modules/node/node.install
410 410
      'nid' => array(
411 411
        'description' => 'The {node}.nid that was read.',
412 412
        'type' => 'int',
413
        'unsigned' => TRUE,
413 414
        'not null' => TRUE,
414 415
        'default' => 0,
415 416
      ),
......
943 944
    ->execute();
944 945
}
945 946

  
947
/**
948
 * Change {history}.nid to an unsigned int in order to match {node}.nid.
949
 */
950
function node_update_7016() {
951
  db_drop_primary_key('history');
952
  db_drop_index('history', 'nid');
953
  db_change_field('history', 'nid', 'nid', array(
954
    'description' => 'The {node}.nid that was read.',
955
    'type' => 'int',
956
    'unsigned' => TRUE,
957
    'not null' => TRUE,
958
    'default' => 0,
959
  ));
960
  db_add_primary_key('history', array('uid', 'nid'));
961
  db_add_index('history', 'nid', array('nid'));
962
}
963

  
946 964
/**
947 965
 * @} End of "addtogroup updates-7.x-extra".
948 966
 */

Formats disponibles : Unified diff