You are here

function comment_notify_update_6005 in Comment Notify 6

Having our foreign keys auto_increment could lead to unexpected results.

File

./comment_notify.install, line 285
comment_notify.install.

Code

function comment_notify_update_6005() {
  $ret = array();
  db_change_field($ret, 'comment_notify', 'cid', 'cid', array(
    'type' => 'int',
    'unsigned' => TRUE,
    'description' => 'The comment id from {comments}.cid',
    'not null' => TRUE,
    'disp-width' => '11',
  ));
  db_change_field($ret, 'comment_notify_user_settings', 'uid', 'uid', array(
    'type' => 'int',
    'unsigned' => TRUE,
    'description' => 'The user id from {users}.cid',
    'not null' => TRUE,
    'disp-width' => '11',
  ));
  return $ret;
}