Use scope_id instead of the scope name

This commit is contained in:
Alex Bilbie 2013-01-29 16:15:45 +00:00
parent 31c3b495bf
commit dcd1026a98

View File

@ -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`),