build: 修改flyway

This commit is contained in:
CaptainB 2022-03-15 17:09:42 +08:00 committed by shiziyuan9527
parent 2a5b81365f
commit bd24ab842f
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ BEGIN
#遍历游标
REPEAT
#利用取到的值进行数据库的操作
DELETE FROM project_application WHERE project_id = projectId AND type = 'API_SHARE_REPORT_TIME';
INSERT INTO project_application (project_id, type, type_value)
VALUES (projectId, 'API_SHARE_REPORT_TIME', '24H');
# 将游标中的值再赋值给变量,供下次循环使用