You are here

function simplenews_update_7004 in Simplenews 7.2

Same name and namespace in other branches
  1. 7 simplenews.install \simplenews_update_7004()

Add the status field to {simplenews_subscription}.

File

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

Code

function simplenews_update_7004() {
  if (!db_field_exists('simplenews_subscription', 'status')) {
    db_add_field('simplenews_subscription', 'status', array(
      'description' => 'A flag indicating whether the user is subscribed (1) or unsubscribed (0).',
      'type' => 'int',
      'size' => 'small',
      'not null' => TRUE,
      'default' => 1,
    ));
  }
}