summaryrefslogtreecommitdiff
path: root/modules/openid/openid.install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/openid/openid.install')
-rw-r--r--modules/openid/openid.install21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/openid/openid.install b/modules/openid/openid.install
index c98b9ea34..1931e4edf 100644
--- a/modules/openid/openid.install
+++ b/modules/openid/openid.install
@@ -16,3 +16,24 @@ 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;
+}
+