You are here

function notify_update_7001 in Notify 7

Add notify_unpublished_comments_queue table.

File

./notify.install, line 268
Install, update and uninstall functions for the notify module.

Code

function notify_update_7001() {
  $schema['notify_unpublished_comments_queue'] = array(
    'description' => 'Stores list of unpublished comments to determine which comments have since been published when sending out notifications.',
    'fields' => array(
      'cid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
        'description' => 'The {comment}.cid of the unpublished comment.',
      ),
      'nid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
        'description' => 'The {node}.nid to which this comment is a reply.',
      ),
    ),
    'primary key' => array(
      'cid',
    ),
  );
  db_create_table('notify_unpublished_comments_queue', $schema['notify_unpublished_comments_queue']);
}