refactor: 重建中间表,保证联合主键的自增问题

This commit is contained in:
Captain.B 2021-07-29 15:53:30 +08:00 committed by 刘瑞斌
parent 0054a5d6ea
commit fe484a425d
1 changed files with 15 additions and 1 deletions

View File

@ -12,4 +12,18 @@ values (UUID(), 'project_member', 'PROJECT_REPORT_ANALYSIS:READ+EXPORT', 'PROJEC
-- 只读
insert into user_group_permission (id, group_id, permission_id, module_id)
values (UUID(), 'read_only', 'PROJECT_REPORT_ANALYSIS:READ', 'PROJECT_REPORT_ANALYSIS');
values (UUID(), 'read_only', 'PROJECT_REPORT_ANALYSIS:READ', 'PROJECT_REPORT_ANALYSIS');
-- 重建中间表
DROP TABLE load_test_report_detail;
CREATE TABLE `load_test_report_detail`
(
`report_id` VARCHAR(50) NOT NULL,
`part` BIGINT AUTO_INCREMENT NOT NULL,
`content` LONGTEXT,
PRIMARY KEY (`report_id`, `part`)
)
ENGINE = MyISAM
DEFAULT CHARSET = utf8mb4
COLLATE utf8mb4_general_ci;