mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-23 13:39:48 +05:30
Use scope_id instead of the scope name
This commit is contained in:
parent
31c3b495bf
commit
dcd1026a98
@ -49,7 +49,7 @@ CREATE TABLE `scopes` (
|
|||||||
CREATE TABLE `oauth_session_scopes` (
|
CREATE TABLE `oauth_session_scopes` (
|
||||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
`session_id` int(11) unsigned NOT NULL,
|
`session_id` int(11) unsigned NOT NULL,
|
||||||
`scope` varchar(255) NOT NULL DEFAULT '',
|
`scope_id` int(11) unsigned NOT NULL,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `session_id` (`session_id`),
|
KEY `session_id` (`session_id`),
|
||||||
KEY `scope` (`scope`),
|
KEY `scope` (`scope`),
|
||||||
|
Loading…
Reference in New Issue
Block a user