From b7bae1120bccae3f28a26535e757e98d814dcd45 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 23 Apr 2013 13:44:21 +0100 Subject: [PATCH] Fixed mysql character set --- sql/mysql.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sql/mysql.sql b/sql/mysql.sql index fdd0ce51..d75ea5c7 100644 --- a/sql/mysql.sql +++ b/sql/mysql.sql @@ -35,7 +35,7 @@ CREATE TABLE `oauth_session_access_token` ( UNIQUE KEY `u_oaseacto_acto_seid` (`access_token`,`session_id`), KEY `f_oaseto_seid` (`session_id`), CONSTRAINT `f_oaseto_seid` FOREIGN KEY (`session_id`) REFERENCES `oauth_session` (`session_id`) ON DELETE CASCADE ON UPDATE NO ACTION -) ENGINE=INNODB DEFAULT CHARSET=latin1; +) ENGINE=INNODB DEFAULT CHARSET=utf8; CREATE TABLE `oauth_session_authcode` ( `session_id` INT(10) UNSIGNED NOT NULL, @@ -46,21 +46,21 @@ CREATE TABLE `oauth_session_authcode` ( KEY `f_oaseau_setoid` (`session_token_id`), CONSTRAINT `f_oaseau_seid` FOREIGN KEY (`session_id`) REFERENCES `oauth_session` (`session_id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `f_oaseau_setoid` FOREIGN KEY (`session_token_id`) REFERENCES `oauth_session_access_token` (`session_token_id`) ON DELETE CASCADE ON UPDATE NO ACTION -) ENGINE=INNODB DEFAULT CHARSET=latin1; +) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `oauth_session_redirect` ( `session_id` INT(10) UNSIGNED NOT NULL, `redirect_uri` VARCHAR(255) CHARACTER SET utf8 NOT NULL DEFAULT '', PRIMARY KEY (`session_id`), CONSTRAINT `f_oasere_seid` FOREIGN KEY (`session_id`) REFERENCES `oauth_session` (`session_id`) ON DELETE CASCADE ON UPDATE NO ACTION -) ENGINE=INNODB DEFAULT CHARSET=latin1; +) ENGINE=INNODB DEFAULT CHARSET=utf8; CREATE TABLE `oauth_session_refresh_token` ( `session_token_id` INT(10) UNSIGNED NOT NULL, `refresh_token` CHAR(40) CHARACTER SET utf8 NOT NULL DEFAULT '', PRIMARY KEY (`session_token_id`), CONSTRAINT `f_oasetore_setoid` FOREIGN KEY (`session_token_id`) REFERENCES `oauth_session_access_token` (`session_token_id`) ON DELETE CASCADE ON UPDATE NO ACTION -) ENGINE=INNODB DEFAULT CHARSET=latin1; +) ENGINE=INNODB DEFAULT CHARSET=utf8; CREATE TABLE `oauth_scopes` ( `scope_id` SMALLINT(5) UNSIGNED NOT NULL AUTO_INCREMENT,