refactor: 重建中间表,保证联合主键的自增问题
This commit is contained in:
parent
0054a5d6ea
commit
fe484a425d
|
@ -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;
|
Loading…
Reference in New Issue