function birthdays_schema in Birthdays 6
Implementation of hook_schema().
File
- ./
birthdays.install, line 22 - Installation file for the Birthdays module.
Code
function birthdays_schema() {
$schema = array();
$schema['dob'] = array(
'description' => t('Table containing birthdays of the users.'),
'fields' => array(
'uid' => array(
'description' => t('The current user identifier.'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'birthday' => array(
'description' => t('The birthday of this user.'),
'type' => 'datetime',
'not null' => TRUE,
),
),
'primary key' => array(
'uid',
),
);
return $schema;
}