feat(db): 迁移 manage-db 测试代码与配置(任务 T1.3)
- 删除原有测试文件 - 从 gym-manage 复制测试文件 - 批量替换包名:cn.novalon.gym.manage → cn.novalon.manage - 替换 application.yml 和 application-test.yml - 更新 AutoConfiguration.imports 包名 - 编译验证通过 相关文档: docs/superpowers/specs/2026-04-27-migration-phase-1.json
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
|||||||
cn.novalon.manage.db.config.RepositoryScanConfig
|
cn.novalon.manage.db.config.RepositoryScanConfig
|
||||||
|
|||||||
+1
-1
@@ -72,7 +72,6 @@ class FlywayMigrationScriptTest {
|
|||||||
|
|
||||||
List<Path> sqlFiles = Files.list(migrationDir)
|
List<Path> sqlFiles = Files.list(migrationDir)
|
||||||
.filter(p -> p.toString().endsWith(".sql"))
|
.filter(p -> p.toString().endsWith(".sql"))
|
||||||
.sorted()
|
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
List<Integer> versions = sqlFiles.stream()
|
List<Integer> versions = sqlFiles.stream()
|
||||||
@@ -81,6 +80,7 @@ class FlywayMigrationScriptTest {
|
|||||||
String versionStr = filename.substring(1, filename.indexOf("__"));
|
String versionStr = filename.substring(1, filename.indexOf("__"));
|
||||||
return Integer.parseInt(versionStr);
|
return Integer.parseInt(versionStr);
|
||||||
})
|
})
|
||||||
|
.sorted()
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
for (int i = 1; i < versions.size(); i++) {
|
for (int i = 1; i < versions.size(); i++) {
|
||||||
Reference in New Issue
Block a user