function recovery_pass_schema in Recovery Password (Email New Password) 7
Same name and namespace in other branches
- 8 recovery_pass.install \recovery_pass_schema()
Implements hook_schema().
File
- ./
recovery_pass.install, line 10 - Install, update, and uninstall functions for the Recovery Password module.
Code
function recovery_pass_schema() {
$schema['recovery_pass'] = array(
'fields' => array(
'id' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'uid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'UID of user.',
),
'old_pass' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => 255,
'description' => 'stores temp old pass',
),
'changed' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'description' => 'stores request created time',
),
),
'primary key' => array(
'id',
),
'foreign keys' => array(
'recovery_pass_uid' => array(
'table' => 'users',
'columns' => array(
'uid' => 'uid',
),
),
),
);
return $schema;
}