diff --git a/backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_10__case_ddl.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_10__case_ddl.sql similarity index 100% rename from backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_10__case_ddl.sql rename to backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_10__case_ddl.sql diff --git a/backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_11__system_ddl.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_11__system_ddl.sql similarity index 100% rename from backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_11__system_ddl.sql rename to backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_11__system_ddl.sql diff --git a/backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_12__bug_ddl.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_12__bug_ddl.sql similarity index 100% rename from backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_12__bug_ddl.sql rename to backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_12__bug_ddl.sql diff --git a/backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_1__init.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_1__init.sql similarity index 100% rename from backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_1__init.sql rename to backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_1__init.sql diff --git a/backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_2__sdk_ddl.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_2__sdk_ddl.sql similarity index 100% rename from backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_2__sdk_ddl.sql rename to backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_2__sdk_ddl.sql diff --git a/backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_3__plan_ddl.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_3__plan_ddl.sql similarity index 100% rename from backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_3__plan_ddl.sql rename to backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_3__plan_ddl.sql diff --git a/backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_4__project_ddl.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_4__project_ddl.sql similarity index 100% rename from backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_4__project_ddl.sql rename to backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_4__project_ddl.sql diff --git a/backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_5__api_ddl.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_5__api_ddl.sql similarity index 100% rename from backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_5__api_ddl.sql rename to backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_5__api_ddl.sql diff --git a/backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_6__qrtz_ddl.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_6__qrtz_ddl.sql similarity index 100% rename from backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_6__qrtz_ddl.sql rename to backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_6__qrtz_ddl.sql diff --git a/backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_7__load_ddl.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_7__load_ddl.sql similarity index 100% rename from backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_7__load_ddl.sql rename to backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_7__load_ddl.sql diff --git a/backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_8__ui_ddl.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_8__ui_ddl.sql similarity index 100% rename from backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_8__ui_ddl.sql rename to backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_8__ui_ddl.sql diff --git a/backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_9__load_ddl.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_9__load_ddl.sql similarity index 100% rename from backend/app/src/main/resources/migration/3.0.0/ddl/V3.0.0_9__load_ddl.sql rename to backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_9__load_ddl.sql diff --git a/backend/app/src/main/resources/migration/3.0.0/dml/V3.0.0_11_1__data.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/dml/V3.0.0_11_1__data.sql similarity index 100% rename from backend/app/src/main/resources/migration/3.0.0/dml/V3.0.0_11_1__data.sql rename to backend/framework/domain/src/main/resources/migration/3.0.0/dml/V3.0.0_11_1__data.sql diff --git a/backend/app/src/main/resources/migration/3.0.1/ddl/V3.0.1_1__init.sql b/backend/framework/domain/src/main/resources/migration/3.0.1/ddl/V3.0.1_1__init.sql similarity index 100% rename from backend/app/src/main/resources/migration/3.0.1/ddl/V3.0.1_1__init.sql rename to backend/framework/domain/src/main/resources/migration/3.0.1/ddl/V3.0.1_1__init.sql diff --git a/backend/services/api-test/src/test/resources/application.properties b/backend/services/api-test/src/test/resources/application.properties index dbb73ca597..4be4137d0d 100644 --- a/backend/services/api-test/src/test/resources/application.properties +++ b/backend/services/api-test/src/test/resources/application.properties @@ -49,7 +49,7 @@ spring.mvc.throw-exception-if-no-handler-found=true # flyway enable spring.flyway.enabled=true spring.flyway.baseline-on-migrate=true -spring.flyway.locations=filesystem:../../app/src/main/resources/migration +spring.flyway.locations=classpath:/migration spring.flyway.table=metersphere_version spring.flyway.baseline-version=0 spring.flyway.encoding=UTF-8 diff --git a/backend/services/bug-management/src/test/resources/application.properties b/backend/services/bug-management/src/test/resources/application.properties index 6b0ff2e3e2..f902b5206c 100644 --- a/backend/services/bug-management/src/test/resources/application.properties +++ b/backend/services/bug-management/src/test/resources/application.properties @@ -49,7 +49,7 @@ spring.mvc.throw-exception-if-no-handler-found=true # flyway enable spring.flyway.enabled=true spring.flyway.baseline-on-migrate=true -spring.flyway.locations=filesystem:../../app/src/main/resources/migration +spring.flyway.locations=classpath:/migration spring.flyway.table=metersphere_version spring.flyway.baseline-version=0 spring.flyway.encoding=UTF-8 diff --git a/backend/services/case-management/src/test/resources/application.properties b/backend/services/case-management/src/test/resources/application.properties index fc4798ab49..ce8982909f 100644 --- a/backend/services/case-management/src/test/resources/application.properties +++ b/backend/services/case-management/src/test/resources/application.properties @@ -49,7 +49,7 @@ spring.mvc.throw-exception-if-no-handler-found=true # flyway enable spring.flyway.enabled=true spring.flyway.baseline-on-migrate=true -spring.flyway.locations=filesystem:../../app/src/main/resources/migration +spring.flyway.locations=classpath:/migration spring.flyway.table=metersphere_version spring.flyway.baseline-version=0 spring.flyway.encoding=UTF-8 diff --git a/backend/services/project-management/src/test/resources/application.properties b/backend/services/project-management/src/test/resources/application.properties index 978326d18b..a5ceaa74f8 100644 --- a/backend/services/project-management/src/test/resources/application.properties +++ b/backend/services/project-management/src/test/resources/application.properties @@ -49,7 +49,7 @@ spring.mvc.throw-exception-if-no-handler-found=true # flyway enable spring.flyway.enabled=true spring.flyway.baseline-on-migrate=true -spring.flyway.locations=filesystem:../../app/src/main/resources/migration +spring.flyway.locations=classpath:/migration spring.flyway.table=metersphere_version spring.flyway.baseline-version=0 spring.flyway.encoding=UTF-8 diff --git a/backend/services/system-setting/src/test/resources/application.properties b/backend/services/system-setting/src/test/resources/application.properties index 71035947a4..6ae2fb4105 100644 --- a/backend/services/system-setting/src/test/resources/application.properties +++ b/backend/services/system-setting/src/test/resources/application.properties @@ -49,7 +49,7 @@ spring.mvc.throw-exception-if-no-handler-found=true # flyway enable spring.flyway.enabled=true spring.flyway.baseline-on-migrate=true -spring.flyway.locations=filesystem:../../app/src/main/resources/migration +spring.flyway.locations=classpath:/migration spring.flyway.table=metersphere_version spring.flyway.baseline-version=0 spring.flyway.encoding=UTF-8 diff --git a/backend/services/test-plan/src/test/resources/application.properties b/backend/services/test-plan/src/test/resources/application.properties index 1b9a09bfff..2e57dad6fa 100644 --- a/backend/services/test-plan/src/test/resources/application.properties +++ b/backend/services/test-plan/src/test/resources/application.properties @@ -49,7 +49,7 @@ spring.mvc.throw-exception-if-no-handler-found=true # flyway enable spring.flyway.enabled=true spring.flyway.baseline-on-migrate=true -spring.flyway.locations=filesystem:../../app/src/main/resources/migration +spring.flyway.locations=classpath:/migration spring.flyway.table=metersphere_version spring.flyway.baseline-version=0 spring.flyway.encoding=UTF-8