mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-05 19:43:56 +05:30
Fixed oauth_session_token_scopes primary key
This commit is contained in:
parent
39379fe5b6
commit
3cb79fc2b5
@ -74,10 +74,10 @@ CREATE TABLE `oauth_scopes` (
|
|||||||
) ENGINE=INNODB DEFAULT CHARSET=utf8;
|
) ENGINE=INNODB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
CREATE TABLE `oauth_session_token_scopes` (
|
CREATE TABLE `oauth_session_token_scopes` (
|
||||||
`session_token_scope_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
`session_access_token_id` int(10) unsigned DEFAULT NULL,
|
`session_access_token_id` int(10) unsigned DEFAULT NULL,
|
||||||
`scope_id` smallint(5) unsigned NOT NULL,
|
`scope_id` smallint(5) unsigned NOT NULL,
|
||||||
PRIMARY KEY (`session_token_scope_id`),
|
PRIMARY KEY (`id`),
|
||||||
UNIQUE KEY `u_setosc_setoid_scid` (`session_access_token_id`,`scope_id`),
|
UNIQUE KEY `u_setosc_setoid_scid` (`session_access_token_id`,`scope_id`),
|
||||||
KEY `f_oasetosc_scid` (`scope_id`),
|
KEY `f_oasetosc_scid` (`scope_id`),
|
||||||
CONSTRAINT `f_oasetosc_scid` FOREIGN KEY (`scope_id`) REFERENCES `oauth_scopes` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
|
CONSTRAINT `f_oasetosc_scid` FOREIGN KEY (`scope_id`) REFERENCES `oauth_scopes` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION,
|
||||||
|
Loading…
Reference in New Issue
Block a user