diff options
author | Zach Copley <zach@status.net> | 2009-10-01 16:17:43 -0700 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2009-10-01 16:17:43 -0700 |
commit | b3bbaecf47d74102a2ed48cd0c773d33a4a49d59 (patch) | |
tree | 5aed1f7150ac6a988148499cd8beae8b1854648f /plugins | |
parent | b0ddb971e61bd98250c41e653ab2e649a9b08926 (diff) | |
parent | f65baaaa4f48b84392200bb54161887669440cab (diff) |
Merge branch '0.9.x' into refactor-api
* 0.9.x:
change DB so OpenIDPlugin manages OpenID tables
Some bug fixes
check the schema
add some more methods to Schema
Added hook for Aside container
Revert "Outputting UTF-8 charset in document header irrespective of mimetype."
FOAF for Groups.
use schema tool to create a table
statusize schema-related modules
test script for schema code
make table def method of schema code work
start a module for schema management
Diffstat (limited to 'plugins')
-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; + } } |