diff options
author | Brion Vibber <brion@pobox.com> | 2009-10-04 16:16:52 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2009-10-04 16:16:52 -0700 |
commit | 4462a1c63600fa83d2692ac2de8067b12b1eeac9 (patch) | |
tree | a946b98184eb32b5be4bf64e67357c06e8d0f65d /plugins/OpenID/OpenIDPlugin.php | |
parent | 9235c1437e542d2b565d2d2d36fe2b7561e4d5f7 (diff) | |
parent | 2f065d687dc76bfbac3e1b7b3dcccf544f4b4987 (diff) |
Merge branch '0.9.x' of git://gitorious.org/statusnet/mainline into 0.9.x
Diffstat (limited to 'plugins/OpenID/OpenIDPlugin.php')
-rw-r--r-- | plugins/OpenID/OpenIDPlugin.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/OpenID/OpenIDPlugin.php b/plugins/OpenID/OpenIDPlugin.php index 91bddf381..a933a1155 100644 --- a/plugins/OpenID/OpenIDPlugin.php +++ b/plugins/OpenID/OpenIDPlugin.php @@ -222,4 +222,19 @@ class OpenIDPlugin extends Plugin return true; } + + function onCheckSchema() { + $schema = Schema::get(); + $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'))); + return true; + } } |