You are here

function notifications_update_7001 in Notifications 7

Update schema: add stats fields for events

File

./notifications.install, line 223

Code

function notifications_update_7001() {
  foreach (array(
    'send_start',
    'send_end',
    'send_time',
    'notif_count',
    'notif_errors',
    'notif_sent',
    'notif_success',
    'log',
  ) as $field) {
    db_add_field('notifications_event', $field, array(
      'type' => 'int',
      'unsigned' => TRUE,
      'not null' => TRUE,
      'default' => 0,
    ));
  }
}