You are here

function comment_notify_update_8001 in Comment Notify 8

Rename db column name from node_notify to entity_notify.

File

./comment_notify.install, line 88
Comment_notify.install.

Code

function comment_notify_update_8001() {
  $spec = [
    'type' => 'int',
    'description' => 'An integer indicating the default type of subscription: 0 means not subscribed, 1 means subscribed to all comments, and 2 means only subscribed to replies of this comment.',
    'size' => 'tiny',
    'not null' => TRUE,
    'default' => 0,
    'disp-width' => '11',
  ];
  Database::getConnection()
    ->schema()
    ->changeField('comment_notify_user_settings', 'node_notify', 'entity_notify', $spec);
}