function session_api_schema in Session API 6
Same name and namespace in other branches
- 7 session_api.install \session_api_schema()
Implementation of hook_schema().
File
- ./
session_api.install, line 21
Code
function session_api_schema() {
$schema['session_api'] = array(
'description' => t('Map Session API IDs to the {sessions} sid field.'),
'fields' => array(
'sid' => array(
'type' => 'serial',
'not null' => TRUE,
),
'session_id' => array(
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
),
),
'primary key' => array(
'sid',
),
'unique keys' => array(
'session_id' => array(
'session_id',
),
),
);
return $schema;
}