diff options
author | Zach Copley <zach@status.net> | 2010-10-20 11:41:04 -0700 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-10-20 11:41:04 -0700 |
commit | 3d6a0f730d153378f47805bc6ea8a8d543eb9ab6 (patch) | |
tree | 52a1e0879e518490928513e5a09e7a999cf2b226 /db | |
parent | 2760ef07f538da4116074ff7e2a04f799906a5bc (diff) |
Revert DB change for OAuth. Change compound key for oauth_application_user
back to (profile_id, application_id). I think we can get away without
a DB change by only issuing one anonymous access token per user.
Diffstat (limited to 'db')
-rw-r--r-- | db/statusnet.sql | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/statusnet.sql b/db/statusnet.sql index 4ae7e5684..3f95948e1 100644 --- a/db/statusnet.sql +++ b/db/statusnet.sql @@ -231,10 +231,10 @@ create table oauth_application_user ( profile_id integer not null comment 'user of the application' references profile (id), application_id integer not null comment 'id of the application' references oauth_application (id), access_type tinyint default 0 comment 'access type, bit 1 = read, bit 2 = write', - token varchar(255) not null comment 'request or access token', + token varchar(255) comment 'request or access token', created datetime not null comment 'date this record was created', modified timestamp comment 'date this record was modified', - constraint primary key (profile_id, application_id, token) + constraint primary key (profile_id, application_id) ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin; /* These are used by JanRain OpenID library */ |