You are here

function simplenews_update_7009 in Simplenews 7

Same name and namespace in other branches
  1. 7.2 simplenews.install \simplenews_update_7009()

Add the sent_subsriber_countcolumn to {simplenews_newsletter} if missing.

File

./simplenews.install, line 862
Install, update and uninstall functions for the simplenews module

Code

function simplenews_update_7009() {
  if (!db_field_exists('simplenews_newsletter', 'sent_subscriber_count')) {
    db_add_field('simplenews_newsletter', 'sent_subscriber_count', array(
      'description' => 'The count of subscribers to the newsletter when it was sent.',
      'type' => 'int',
      'not null' => TRUE,
      'default' => 0,
    ));
  }
}