mirror of
				https://github.com/elyby/oauth2-server.git
				synced 2025-05-31 14:12:07 +05:30 
			
		
		
		
	Set relationship to scope_id
This commit is contained in:
		@@ -52,7 +52,7 @@ CREATE TABLE `oauth_session_scopes` (
 | 
			
		||||
  `scope_id` int(11) unsigned NOT NULL,
 | 
			
		||||
  PRIMARY KEY (`id`),
 | 
			
		||||
  KEY `session_id` (`session_id`),
 | 
			
		||||
  KEY `scope` (`scope`),
 | 
			
		||||
  CONSTRAINT `oauth_session_scopes_ibfk_3` FOREIGN KEY (`scope`) REFERENCES `scopes` (`scope`) ON DELETE CASCADE ON UPDATE CASCADE,
 | 
			
		||||
  KEY `scope_id` (`scope_id`),
 | 
			
		||||
  CONSTRAINT `oauth_session_scopes_ibfk_5` FOREIGN KEY (`scope_id`) REFERENCES `scopes` (`id`) ON DELETE CASCADE,
 | 
			
		||||
  CONSTRAINT `oauth_session_scopes_ibfk_4` FOREIGN KEY (`session_id`) REFERENCES `oauth_sessions` (`id`) ON DELETE CASCADE
 | 
			
		||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user