You are here

function simplenews_update_7006 in Simplenews 7.2

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

Add support for subscriber create date

File

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

Code

function simplenews_update_7006() {
  db_add_field('simplenews_subscriber', 'created', array(
    'description' => 'UNIX timestamp of when the subscription record was added.',
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  ));
}