function cas_server_schema in CAS 7
Same name and namespace in other branches
- 6.3 cas_server.install \cas_server_schema()
Implements 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' => 1024,
'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;
}