PostgreSQL - propogated nonce table fix from MySQL version - see bug #1251 or 1179ecd13d
This commit is contained in:
parent
c21d61840d
commit
a4091c878a
@ -180,14 +180,13 @@ create table token (
|
|||||||
create table nonce (
|
create table nonce (
|
||||||
consumer_key varchar(255) not null /* comment 'unique identifier, root URL' */,
|
consumer_key varchar(255) not null /* comment 'unique identifier, root URL' */,
|
||||||
tok char(32) not null /* comment 'identifying value' */,
|
tok char(32) not null /* comment 'identifying value' */,
|
||||||
nonce char(32) not null /* comment 'nonce' */,
|
nonce char(32) null /* comment 'buggy old value, ignored */,
|
||||||
ts integer not null /* comment 'timestamp sent' values are epoch, and only used internally */,
|
ts integer not null /* comment 'timestamp sent' values are epoch, and only used internally */,
|
||||||
|
|
||||||
created timestamp not null default CURRENT_TIMESTAMP /* comment 'date this record was created' */,
|
created timestamp not null default CURRENT_TIMESTAMP /* comment 'date this record was created' */,
|
||||||
modified timestamp /* comment 'date this record was modified' */,
|
modified timestamp /* comment 'date this record was modified' */,
|
||||||
|
|
||||||
primary key (consumer_key, tok, nonce),
|
primary key (consumer_key, ts, nonce)
|
||||||
foreign key (consumer_key, tok) references token (consumer_key, tok)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
/* One-to-many relationship of user to openid_url */
|
/* One-to-many relationship of user to openid_url */
|
||||||
|
Loading…
Reference in New Issue
Block a user