You are here

function cas_update_1 in CAS 7

Same name and namespace in other branches
  1. 5.4 cas.install \cas_update_1()
  2. 5.3 cas.install \cas_update_1()
  3. 6.3 cas.install \cas_update_1()
  4. 6.2 cas.install \cas_update_1()

Creates CAS login data table for Single-Sign-Out.

File

./cas.install, line 179
Installation hooks for the CAS module.

Code

function cas_update_1() {
  $schema = array();
  $schema['cas_login_data'] = array(
    'description' => 'Stores CAS session information.',
    'fields' => array(
      'cas_session_id' => array(
        'description' => 'CAS session ID',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'uid' => array(
        'description' => 'The {users}.uid associated with the CAS session.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'cas_session_id',
    ),
  );
  db_create_table('cas_login_data', $schema['cas_login_data']);
}