Added cascading relationship between oauth_sessions_authcodes and oauth_sessions

This commit is contained in:
Alex Bilbie 2013-05-10 17:32:39 -07:00
parent ef4a138237
commit 86fb02d218

View File

@ -42,7 +42,9 @@ CREATE TABLE `oauth_session_authcodes` (
`session_id` int(10) unsigned NOT NULL, `session_id` int(10) unsigned NOT NULL,
`auth_code` char(40) NOT NULL, `auth_code` char(40) NOT NULL,
`auth_code_expires` int(10) unsigned NOT NULL, `auth_code_expires` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`),
KEY `session_id` (`session_id`),
CONSTRAINT `oauth_session_authcodes_ibfk_1` FOREIGN KEY (`session_id`) REFERENCES `oauth_sessions` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `oauth_session_redirects` ( CREATE TABLE `oauth_session_redirects` (