chore(migration): V168/169 纯跳号封账入 RETIRED_HOLES——归写 cost-guard V170 那一路(9c4905c9 直接取号 170,两号全历史零落盘)
This commit is contained in:
@@ -67,7 +67,7 @@ class MigrationInventoryTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* 不许再被占用的整数版本洞。两条来历不同,得分开记:
|
||||
* 不许再被占用的整数版本洞。三条来历不同,得分开记:
|
||||
*
|
||||
* <p><b>132/133</b>:已在生产 {@code flyway_schema_history} 中占位、但本地文件被改名让位的版本号。
|
||||
* 生产 131 之后直接装了 134/135(2026-09-25 20:46:16),132/133 从未落库;而 Flyway 未开
|
||||
@@ -82,9 +82,14 @@ class MigrationInventoryTest {
|
||||
* 而同号两个文件会让 Flyway 启动期报 "Found more than one migration with version 148",
|
||||
* 后果是两台 java 同时起不来。宁可让本用例红,也不把撞号留到运行期发现。</p>
|
||||
*
|
||||
* <p><b>168/169</b>:从未有文件占用过的纯跳号,归 cost-guard 那一路({@code V170__user_task_guard.sql},
|
||||
* commit 9c4905c9)——写 170 时直接越过 168/169,全 git 历史核对零命中,两号无人落盘。
|
||||
* 目录最大值升到 170 之后若回填新内容,已应用 170 的环境在 Flyway out-of-order 关闭下会把它当
|
||||
* ignored migration 静默跳过,各环境 Schema 悄悄漂移。与 148 不同这不是并发护栏,是既成跳号的封账。</p>
|
||||
*
|
||||
* <p>共同后果:新迁移只能取当前最大值之上的号(详见 docs/migration-inventory.md)。</p>
|
||||
*/
|
||||
private static final Set<Integer> RETIRED_HOLES = Set.of(132, 133, 148);
|
||||
private static final Set<Integer> RETIRED_HOLES = Set.of(132, 133, 148, 168, 169);
|
||||
|
||||
@Test
|
||||
void integerVersionsSequentialFromOne() throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user