You are here

function simplenews_update_8201 in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 simplenews.install \simplenews_update_8201()

Update simplenews_mail_spool table.

File

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

Code

function simplenews_update_8201() {
  $db_schema = Database::getConnection()
    ->schema();
  $db_schema
    ->changeField('simplenews_mail_spool', 'snid', 'snid', [
    'description' => 'Foreign key for subscriber table ({simplenews_subscriber}.id).',
    'type' => 'int',
    'not null' => FALSE,
  ]);
  $db_schema
    ->dropField('simplenews_mail_spool', 'mail');
}