You are here

function user_external_invite_update_7001 in User External Invite 7

Same name and namespace in other branches
  1. 7.2 user_external_invite.install \user_external_invite_update_7001()
  2. 1.0.x user_external_invite.install \user_external_invite_update_7001()

Add status row to table.

File

./user_external_invite.install, line 124
Set-up database schema and install tasks for user_external_invite module.

Code

function user_external_invite_update_7001() {
  if (!db_field_exists('user_external_invite', 'status')) {
    $spec = array(
      'description' => 'Status of the Invitation',
      'type' => 'varchar',
      'length' => 254,
      'not null' => TRUE,
      'default' => 'Pending',
    );
    db_add_field('user_external_invite', 'status', $spec);
  }
}