diff options
author | Zach Copley <zach@status.net> | 2009-11-25 23:33:13 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2009-11-25 23:33:13 +0000 |
commit | bd4a613c380212f58dfd43a5fb5541ac4096fc24 (patch) | |
tree | a11de855ffb58a6e65be9755693cff7d6106f722 /plugins/OpenID/OpenIDPlugin.php | |
parent | 2dc62d21f72e47e715f30446584d7e3af60102c0 (diff) | |
parent | 035c8cfd719b5efc5df5cc203d68975566b8e976 (diff) |
Merge branch 'fix-openid' into 0.9.x
Diffstat (limited to 'plugins/OpenID/OpenIDPlugin.php')
-rw-r--r-- | plugins/OpenID/OpenIDPlugin.php | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/plugins/OpenID/OpenIDPlugin.php b/plugins/OpenID/OpenIDPlugin.php index 6dd8a3f5a..9b0a4cd45 100644 --- a/plugins/OpenID/OpenIDPlugin.php +++ b/plugins/OpenID/OpenIDPlugin.php @@ -281,8 +281,24 @@ class OpenIDPlugin extends Plugin function onCheckSchema() { $schema = Schema::get(); - $schema->ensureDataObject('User_openid'); - $schema->ensureDataObject('User_openid_trustroot'); + $schema->ensureTable('user_openid', + array(new ColumnDef('canonical', 'varchar', + '255', false, 'PRI'), + new ColumnDef('display', 'varchar', + '255', false), + new ColumnDef('user_id', 'integer', + null, false, 'MUL'), + new ColumnDef('created', 'datetime', + null, false), + new ColumnDef('modified', 'timestamp'))); + $schema->ensureTable('user_openid_trustroot', + array(new ColumnDef('trustroot', 'varchar', + '255', false, 'PRI'), + new ColumnDef('user_id', 'integer', + null, false, 'PRI'), + new ColumnDef('created', 'datetime', + null, false), + new ColumnDef('modified', 'timestamp'))); return true; } |