From cab721923aceca582efbfd69a81b6a678d47eed9 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 29 Jan 2013 16:17:30 +0000 Subject: [PATCH] Set relationship to scope_id --- sql/database.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/database.sql b/sql/database.sql index 6cc30716..e733253b 100644 --- a/sql/database.sql +++ b/sql/database.sql @@ -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;