You are here

function cas_server_update_1 in CAS 6.3

Same name and namespace in other branches
  1. 5.4 cas_server.install \cas_server_update_1()
  2. 5.3 cas_server.install \cas_server_update_1()
  3. 6.2 cas_server.install \cas_server_update_1()

Implementation of hook_update_N().

File

./cas_server.install, line 67
Installation hooks for the CAS Server module.

Code

function cas_server_update_1() {
  $schema = array();
  $schema['cas_server_tickets'] = array(
    'description' => 'Stores CAS server tickets.',
    'fields' => array(
      'service' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'ticket' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'uid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'timestamp' => array(
        'type' => 'int',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'ticket',
    ),
  );
  $ret = array();
  db_create_table($ret, 'cas_server_tickets', $schema['cas_server_tickets']);
  return $ret;
}