mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-16 18:19:47 +05:30
Revert "Removed session_token_id
column from oauth_session_authcode"
This reverts commit 859e6720bf
.
This commit is contained in:
parent
a265b027cc
commit
b0d3ba7e70
@ -38,11 +38,14 @@ CREATE TABLE `oauth_session_access_token` (
|
|||||||
) ENGINE=INNODB DEFAULT CHARSET=utf8;
|
) ENGINE=INNODB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
CREATE TABLE `oauth_session_authcode` (
|
CREATE TABLE `oauth_session_authcode` (
|
||||||
`session_id` int(10) unsigned NOT NULL,
|
`session_id` INT(10) UNSIGNED NOT NULL,
|
||||||
`auth_code` char(40) CHARACTER SET utf8 NOT NULL DEFAULT '',
|
`session_token_id` INT(10) UNSIGNED DEFAULT NULL,
|
||||||
`auth_code_expires` 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`),
|
PRIMARY KEY (`session_id`),
|
||||||
CONSTRAINT `f_oaseau_seid` FOREIGN KEY (`session_id`) REFERENCES `oauth_session` (`session_id`) ON DELETE CASCADE ON UPDATE NO ACTION
|
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
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
CREATE TABLE `oauth_session_redirect` (
|
CREATE TABLE `oauth_session_redirect` (
|
||||||
|
Loading…
Reference in New Issue
Block a user