fix(项目设置): 修改flyway,删除项目字段

This commit is contained in:
shiziyuan9527 2022-03-07 18:08:58 +08:00 committed by 刘瑞斌
parent a969d7f5a9
commit 5edff87f96
3 changed files with 28 additions and 1 deletions

View File

@ -180,7 +180,7 @@ public class ProjectApplicationService {
LogUtil.error("create or update project config error. project id or conf type or value is blank.");
return;
}
LogUtil.info("create or update project config: " + projectId + "-" + type + "-" + value);
ProjectApplicationExample example = new ProjectApplicationExample();
example.createCriteria().andProjectIdEqualTo(projectId).andTypeEqualTo(type);
if (projectApplicationMapper.countByExample(example) > 0) {

View File

@ -368,6 +368,7 @@ public class ProjectService {
Boolean cleanTrackReport = project.getCleanTrackReport();
Boolean cleanApiReport = project.getCleanApiReport();
Boolean cleanLoadReport = project.getCleanLoadReport();
LogUtil.info("clean track/api/performance report: " + cleanTrackReport + "/" + cleanApiReport + "/" + cleanLoadReport);
// 未设置则不更新定时任务
if (cleanTrackReport == null && cleanApiReport == null && cleanLoadReport == null) {
return;

View File

@ -612,5 +612,31 @@ select id, 'URL_REPEATABLE', if(repeatable, 'true', 'false')
from project
where not exists(select * from project_application where project_id = id and type = 'URL_REPEATABLE');
-- drop column
alter table project drop column repeatable;
alter table project drop column custom_num;
alter table project drop column scenario_custom_num;
alter table project drop column mock_tcp_port;
alter table project drop column is_mock_tcp_open;
alter table project drop column api_quick;
alter table project drop column case_public;
alter table project drop column clean_track_report;
alter table project drop column clean_track_report_expr;
alter table project drop column clean_api_report;
alter table project drop column clean_api_report_expr;
alter table project drop column clean_load_report;
alter table project drop column clean_load_report_expr;