From 8f8d43d693c56c91c1d6e1a286184dc57b75a04e Mon Sep 17 00:00:00 2001 From: matevip Date: Thu, 18 Jun 2026 06:43:06 +0800 Subject: [PATCH] fix(db): renumber webchat migrations to V151/V152 to avoid version collision The webchat session-id (was V147) and archive/revocation (was V148) migrations collided with the wiki migrations already occupying V147 (wiki_page_aliases) and V148 (wiki_entity); wiki migrations run up to V150. Two files sharing a version makes Flyway abort at startup with "Found more than one migration with version N", so the app failed to boot on a fresh database. Renumber the webchat migrations to the next free slots (V151, V152) across all three dialects. Table names are unchanged, so entities and idempotent column guards are unaffected. --- ...{V147__webchat_session_id.sql => V151__webchat_session_id.sql} | 0 ...nd_revocation.sql => V152__webchat_archive_and_revocation.sql} | 0 ...{V147__webchat_session_id.sql => V151__webchat_session_id.sql} | 0 ...nd_revocation.sql => V152__webchat_archive_and_revocation.sql} | 0 ...{V147__webchat_session_id.sql => V151__webchat_session_id.sql} | 0 ...nd_revocation.sql => V152__webchat_archive_and_revocation.sql} | 0 6 files changed, 0 insertions(+), 0 deletions(-) rename mateclaw-server/src/main/resources/db/migration/h2/{V147__webchat_session_id.sql => V151__webchat_session_id.sql} (100%) rename mateclaw-server/src/main/resources/db/migration/h2/{V148__webchat_archive_and_revocation.sql => V152__webchat_archive_and_revocation.sql} (100%) rename mateclaw-server/src/main/resources/db/migration/kingbase/{V147__webchat_session_id.sql => V151__webchat_session_id.sql} (100%) rename mateclaw-server/src/main/resources/db/migration/kingbase/{V148__webchat_archive_and_revocation.sql => V152__webchat_archive_and_revocation.sql} (100%) rename mateclaw-server/src/main/resources/db/migration/mysql/{V147__webchat_session_id.sql => V151__webchat_session_id.sql} (100%) rename mateclaw-server/src/main/resources/db/migration/mysql/{V148__webchat_archive_and_revocation.sql => V152__webchat_archive_and_revocation.sql} (100%) diff --git a/mateclaw-server/src/main/resources/db/migration/h2/V147__webchat_session_id.sql b/mateclaw-server/src/main/resources/db/migration/h2/V151__webchat_session_id.sql similarity index 100% rename from mateclaw-server/src/main/resources/db/migration/h2/V147__webchat_session_id.sql rename to mateclaw-server/src/main/resources/db/migration/h2/V151__webchat_session_id.sql diff --git a/mateclaw-server/src/main/resources/db/migration/h2/V148__webchat_archive_and_revocation.sql b/mateclaw-server/src/main/resources/db/migration/h2/V152__webchat_archive_and_revocation.sql similarity index 100% rename from mateclaw-server/src/main/resources/db/migration/h2/V148__webchat_archive_and_revocation.sql rename to mateclaw-server/src/main/resources/db/migration/h2/V152__webchat_archive_and_revocation.sql diff --git a/mateclaw-server/src/main/resources/db/migration/kingbase/V147__webchat_session_id.sql b/mateclaw-server/src/main/resources/db/migration/kingbase/V151__webchat_session_id.sql similarity index 100% rename from mateclaw-server/src/main/resources/db/migration/kingbase/V147__webchat_session_id.sql rename to mateclaw-server/src/main/resources/db/migration/kingbase/V151__webchat_session_id.sql diff --git a/mateclaw-server/src/main/resources/db/migration/kingbase/V148__webchat_archive_and_revocation.sql b/mateclaw-server/src/main/resources/db/migration/kingbase/V152__webchat_archive_and_revocation.sql similarity index 100% rename from mateclaw-server/src/main/resources/db/migration/kingbase/V148__webchat_archive_and_revocation.sql rename to mateclaw-server/src/main/resources/db/migration/kingbase/V152__webchat_archive_and_revocation.sql diff --git a/mateclaw-server/src/main/resources/db/migration/mysql/V147__webchat_session_id.sql b/mateclaw-server/src/main/resources/db/migration/mysql/V151__webchat_session_id.sql similarity index 100% rename from mateclaw-server/src/main/resources/db/migration/mysql/V147__webchat_session_id.sql rename to mateclaw-server/src/main/resources/db/migration/mysql/V151__webchat_session_id.sql diff --git a/mateclaw-server/src/main/resources/db/migration/mysql/V148__webchat_archive_and_revocation.sql b/mateclaw-server/src/main/resources/db/migration/mysql/V152__webchat_archive_and_revocation.sql similarity index 100% rename from mateclaw-server/src/main/resources/db/migration/mysql/V148__webchat_archive_and_revocation.sql rename to mateclaw-server/src/main/resources/db/migration/mysql/V152__webchat_archive_and_revocation.sql