You are here

function push_notifications_update_7001 in Push Notifications 7

Implements hook_update_n.

File

./push_notifications.install, line 137
Install files for Push Notifications module.

Code

function push_notifications_update_7001() {
  $table = 'push_notifications_tokens';

  // Add a language field to push_notifications_tokens.
  $spec = array(
    'type' => 'varchar',
    'description' => 'Language',
    'length' => 2,
    'not null' => TRUE,
  );
  db_add_field($table, 'language', $spec);

  // Add an index for the language field.
  db_add_index($table, 'language', array(
    'language',
  ));
}