added UNIQUE constraint to client_id

pull/576/head
Justin Richer 2014-01-20 11:30:06 -05:00
parent ea1f52cdf9
commit dd8b17c67d
2 changed files with 4 additions and 2 deletions

View File

@ -114,7 +114,8 @@ CREATE TABLE IF NOT EXISTS client_details (
require_auth_time BOOLEAN,
created_at TIMESTAMP,
initiate_login_uri VARCHAR(2048),
post_logout_redirect_uri VARCHAR(2048)
post_logout_redirect_uri VARCHAR(2048),
UNIQUE (client_id)
);
CREATE TABLE IF NOT EXISTS client_request_uri (

View File

@ -114,7 +114,8 @@ CREATE TABLE IF NOT EXISTS client_details (
require_auth_time BOOLEAN,
created_at TIMESTAMP NULL,
initiate_login_uri VARCHAR(2048),
post_logout_redirect_uri VARCHAR(2048)
post_logout_redirect_uri VARCHAR(2048),
unique(client_id)
);
CREATE TABLE IF NOT EXISTS client_request_uri (