You are here

function sms_user_update_7004 in SMS Framework 7

Add sms_user_opt_out field to {sms_user} table.

File

modules/sms_user/sms_user.install, line 183
Install, update and uninstall functions for the sms_user module.

Code

function sms_user_update_7004() {
  $spec = array(
    'sms_user_opt_out' => array(
      'type' => 'int',
      'size' => 'tiny',
      'unsigned' => TRUE,
      'default' => 0,
      'not null' => TRUE,
    ),
  );
  foreach ($spec as $key => $value) {
    db_add_field('sms_user', $key, $value);
  }
}