修针对mysql5.6版本使用innodb存储引擎,permissions表resouce字段长度过长,无法建表问题

This commit is contained in:
baolongcheng 2020-06-10 21:24:09 +08:00
parent 7f7ee0d5b3
commit 6d24d37c71

View File

@ -192,7 +192,7 @@ CREATE TABLE `roles` (
CREATE TABLE `permissions` (
`role` varchar(50) NOT NULL,
`resource` varchar(512) NOT NULL,
`resource` varchar(255) NOT NULL,
`action` varchar(8) NOT NULL,
UNIQUE INDEX `uk_role_permission` (`role`,`resource`,`action`) USING BTREE
);