fix(项目设置): 修改flyway,删除项目字段
This commit is contained in:
parent
a969d7f5a9
commit
5edff87f96
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue