You are here

function subscriptions_update_7100 in Subscriptions 7

Add the 'secure_links' column.

File

./subscriptions.install, line 337
Subscriptions module installation.

Code

function subscriptions_update_7100() {
  db_add_field('subscriptions_user', 'secure_links', array(
    'type' => 'int',
    'size' => 'tiny',
    'not null' => TRUE,
    'default' => -1,
  ));
  db_update('subscriptions_user')
    ->condition('uid', -DRUPAL_AUTHENTICATED_RID)
    ->expression('secure_links', 0)
    ->execute();
}