1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<?php
// $Id$
/**
* Implementation of hook_install().
*/
function openid_install() {
// Create table.
drupal_install_schema('openid');
}
/**
* Implementation of hook_uninstall().
*/
function openid_uninstall() {
// Remove table.
drupal_uninstall_schema('openid');
}
/**
* Implementation of hook_schema().
*/
function openid_schema() {
$schema['openid_association'] = array(
'fields' => array(
'idp_endpoint_uri' => array('type' => 'varchar', 'length' => 255),
'assoc_handle' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE),
'assoc_type' => array('type' => 'varchar', 'length' => 32),
'session_type' => array('type' => 'varchar', 'length' => 32),
'mac_key' => array('type' => 'varchar', 'length' => 255),
'created' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
'expires_in' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
),
'primary key' => array('assoc_handle'),
);
return $schema;
}
|