角色权限关联表字段长度增加

This commit is contained in:
xiaoyu 2021-11-19 14:55:35 +08:00
parent b17819f8bf
commit 21ceac0408
2 changed files with 5 additions and 2 deletions

View File

@ -36,7 +36,7 @@ CREATE TABLE `t_sys_role` (
DROP TABLE IF EXISTS `t_sys_role_ent_rela`;
CREATE TABLE `t_sys_role_ent_rela` (
`role_id` VARCHAR(32) NOT NULL COMMENT '角色ID',
`ent_id` VARCHAR(32) NOT NULL COMMENT '权限ID' ,
`ent_id` VARCHAR(128) NOT NULL COMMENT '权限ID' ,
PRIMARY KEY (`role_id`, `ent_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统角色权限关联表';

View File

@ -223,4 +223,7 @@ insert into t_sys_entitlement values('ENT_PAY_ORDER_REFUND', '按钮:订单退
INSERT INTO t_pay_interface_define (if_code, if_name, is_mch_mode, is_isv_mode, config_page_type, isv_params, isvsub_mch_params, normal_mch_params, way_codes, icon, bg_color, state, remark, created_at, updated_at) VALUES ('xxpay', '小新支付', 1, 0, 1, null, null, '[{"name":"mchId","desc":"商户号","type":"text","verify":"required"},{"name":"key","desc":"私钥","type":"text","verify":"required","star":"1"},{"name":"payUrl","desc":"支付网关地址","type":"text","verify":"required"}]', '[{"wayCode": "ALI_BAR"}, {"wayCode": "ALI_JSAPI"}, {"wayCode": "WX_BAR"}, {"wayCode": "WX_JSAPI"}]', 'http://jeequan.oss-cn-beijing.aliyuncs.com/jeepay/img/xxpay.png', '#2E4360', 1, null, '2021-09-20 15:21:04', '2021-09-30 14:55:32.907325');
## -- ++++ [v1.9.0] ===> [v1.10.0] ++++
alter table t_refund_order modify err_msg varchar(2048) null comment '渠道错误描述';
alter table t_refund_order modify err_msg varchar(2048) null comment '渠道错误描述';
-- 增加角色权限字段长度
alter table `t_sys_role_ent_rela` MODIFY `ent_id` VARCHAR(128) NOT NULL COMMENT '权限ID' after `role_id`;