summaryrefslogtreecommitdiff
path: root/modules/openid/openid.schema
diff options
context:
space:
mode:
Diffstat (limited to 'modules/openid/openid.schema')
-rw-r--r--modules/openid/openid.schema19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/openid/openid.schema b/modules/openid/openid.schema
new file mode 100644
index 000000000..668b8b8ec
--- /dev/null
+++ b/modules/openid/openid.schema
@@ -0,0 +1,19 @@
+<?php
+// $Id$
+
+function openid_schema() {
+ $schema['openid_association'] = array(
+ 'fields' => array(
+ 'idp_endpoint_uri' => array('type' => 'varchar', 'length' => 255),
+ 'assoc_handle' => array('type' => 'varchar', 'length' => 255),
+ '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;
+} \ No newline at end of file