You are here

function cas_update_1 in CAS 6.3

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.2 cas.install \cas_update_1()
  4. 7 cas.install \cas_update_1()

Implementation of hook_update_N().

File

./cas.install, line 161
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',
    ),
  );
  $ret = array();
  db_create_table($ret, 'cas_login_data', $schema['cas_login_data']);
  return $ret;
}