From 859e6720bf3ef8c7ed0a9594abe6f9aabb992aab Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 23 Apr 2013 13:45:07 +0100 Subject: [PATCH] Removed `session_token_id` column from oauth_session_authcode --- sql/mysql.sql | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/sql/mysql.sql b/sql/mysql.sql index d75ea5c7..543f4586 100644 --- a/sql/mysql.sql +++ b/sql/mysql.sql @@ -38,14 +38,11 @@ CREATE TABLE `oauth_session_access_token` ( ) ENGINE=INNODB DEFAULT CHARSET=utf8; CREATE TABLE `oauth_session_authcode` ( - `session_id` INT(10) UNSIGNED NOT NULL, - `session_token_id` INT(10) UNSIGNED DEFAULT NULL, - `auth_code` CHAR(40) CHARACTER SET utf8 NOT NULL DEFAULT '', - `auth_code_expires` INT(10) UNSIGNED NOT NULL, + `session_id` int(10) unsigned NOT NULL, + `auth_code` char(40) CHARACTER SET utf8 NOT NULL DEFAULT '', + `auth_code_expires` int(10) unsigned NOT NULL, PRIMARY KEY (`session_id`), - KEY `f_oaseau_setoid` (`session_token_id`), - CONSTRAINT `f_oaseau_seid` FOREIGN KEY (`session_id`) REFERENCES `oauth_session` (`session_id`) ON DELETE CASCADE ON UPDATE NO ACTION, - CONSTRAINT `f_oaseau_setoid` FOREIGN KEY (`session_token_id`) REFERENCES `oauth_session_access_token` (`session_token_id`) ON DELETE CASCADE ON UPDATE NO ACTION + CONSTRAINT `f_oaseau_seid` FOREIGN KEY (`session_id`) REFERENCES `oauth_session` (`session_id`) ON DELETE CASCADE ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `oauth_session_redirect` (