mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-18 17:42:54 +05:30
Fixed mysql character set
This commit is contained in:
parent
4727a83d84
commit
b7bae1120b
@ -35,7 +35,7 @@ CREATE TABLE `oauth_session_access_token` (
|
|||||||
UNIQUE KEY `u_oaseacto_acto_seid` (`access_token`,`session_id`),
|
UNIQUE KEY `u_oaseacto_acto_seid` (`access_token`,`session_id`),
|
||||||
KEY `f_oaseto_seid` (`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
|
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` (
|
CREATE TABLE `oauth_session_authcode` (
|
||||||
`session_id` INT(10) UNSIGNED NOT NULL,
|
`session_id` INT(10) UNSIGNED NOT NULL,
|
||||||
@ -46,21 +46,21 @@ CREATE TABLE `oauth_session_authcode` (
|
|||||||
KEY `f_oaseau_setoid` (`session_token_id`),
|
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_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
|
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` (
|
CREATE TABLE `oauth_session_redirect` (
|
||||||
`session_id` INT(10) UNSIGNED NOT NULL,
|
`session_id` INT(10) UNSIGNED NOT NULL,
|
||||||
`redirect_uri` VARCHAR(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
|
`redirect_uri` VARCHAR(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
|
||||||
PRIMARY KEY (`session_id`),
|
PRIMARY KEY (`session_id`),
|
||||||
CONSTRAINT `f_oasere_seid` FOREIGN KEY (`session_id`) REFERENCES `oauth_session` (`session_id`) ON DELETE CASCADE ON UPDATE NO ACTION
|
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` (
|
CREATE TABLE `oauth_session_refresh_token` (
|
||||||
`session_token_id` INT(10) UNSIGNED NOT NULL,
|
`session_token_id` INT(10) UNSIGNED NOT NULL,
|
||||||
`refresh_token` CHAR(40) CHARACTER SET utf8 NOT NULL DEFAULT '',
|
`refresh_token` CHAR(40) CHARACTER SET utf8 NOT NULL DEFAULT '',
|
||||||
PRIMARY KEY (`session_token_id`),
|
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
|
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` (
|
CREATE TABLE `oauth_scopes` (
|
||||||
`scope_id` SMALLINT(5) UNSIGNED NOT NULL AUTO_INCREMENT,
|
`scope_id` SMALLINT(5) UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user