You are here

function cas_server_schema in CAS 6.3

Same name and namespace in other branches
  1. 7 cas_server.install \cas_server_schema()

Implementation of hook_schema().

File

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

Code

function cas_server_schema() {
  $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,
      ),
      'valid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 1,
      ),
    ),
    'primary key' => array(
      'ticket',
    ),
  );
  return $schema;
}