From 764eeb2914cde0ac41e74de114a521fcc5a376c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E8=87=AA=E8=BE=BE?= <980324341@qq.com> Date: Tue, 17 Nov 2026 01:39:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(migration):=20V202=20=E7=A9=BA=E4=BD=8D?= =?UTF-8?q?=E7=99=BB=E8=AE=B0=20RETIRED=5FHOLES=E2=80=94=E2=80=94=E5=B9=B6?= =?UTF-8?q?=E8=A1=8C=E4=BC=9A=E8=AF=9D=E9=85=8D=E9=A2=9D=E8=BF=81=E7=A7=BB?= =?UTF-8?q?=E6=9C=AA=E5=85=A5=E5=BA=93=EF=BC=8CV203/V204/V205=20=E5=B7=B2?= =?UTF-8?q?=E6=8C=89=E5=BA=8F=E8=B6=8A=E8=BF=87=20202=20=E4=B8=8A=E7=BA=BF?= =?UTF-8?q?=EF=BC=8C=E8=AF=A5=E5=8F=B7=E5=8F=AA=E8=83=BD=E6=B0=B8=E4=B9=85?= =?UTF-8?q?=E8=AE=A9=E4=BD=8D=EF=BC=88=E9=93=81=E5=BE=8B=2010=20=E8=B1=81?= =?UTF-8?q?=E5=85=8D=E6=9C=BA=E5=88=B6=EF=BC=8C=E6=9D=A5=E6=BA=90=E4=B8=8E?= =?UTF-8?q?=E6=94=B9=E5=90=8D=E8=A6=81=E6=B1=82=E5=86=99=E8=BF=9B=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/nanri/aiimage/config/MigrationInventoryTest.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/backend-java/src/test/java/com/nanri/aiimage/config/MigrationInventoryTest.java b/backend-java/src/test/java/com/nanri/aiimage/config/MigrationInventoryTest.java index b73e456a6..2d0e48e1a 100644 --- a/backend-java/src/test/java/com/nanri/aiimage/config/MigrationInventoryTest.java +++ b/backend-java/src/test/java/com/nanri/aiimage/config/MigrationInventoryTest.java @@ -88,9 +88,16 @@ class MigrationInventoryTest { * 目录最大值升到 170 之后若回填新内容,已应用 170 的环境在 Flyway out-of-order 关闭下会把它当 * ignored migration 静默跳过,各环境 Schema 悄悄漂移。与 148 不同这不是并发护栏,是既成跳号的封账。
* + *202:{@code V202__users_jd_publish_quota.sql}(users.jd_publish_quota,工作台商品上架配额) + * 由并行会话在写、截至 2026-11-17 发版窗仍未入库;而 V203(61ab844e)已于 2026-11-16 21:1x 上线、 + * V204(aff6c88a)与 V205(任务证据下线,71b19e4f)随 2026-11-17 发版窗越过 202 落库。 + * Flyway 未开 out-of-order ⇒ 该路径入库前必须把文件改名到 V206+(RELEASE_LEDGER 2026-11-16 + * 22:2x 段的顺序债登记);把新迁移写回 202 会让已过 205 的环境启动期报 + * "resolved migration not applied" 失败。与 132/133 同属"只能永久保留、不能回填"。
+ * *共同后果:新迁移只能取当前最大值之上的号(详见 docs/migration-inventory.md)。
*/ - private static final Set