From e442ad83f794dda6cb2c228982ec61130715e27c Mon Sep 17 00:00:00 2001 From: TaprootFreak <142087526+TaprootFreak@users.noreply.github.com> Date: Wed, 27 May 2026 10:07:08 +0200 Subject: [PATCH] hotfix(migrations): revert 0001 + 0003 comment edits to restore sqlx hash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The DEV container has been crash-looping with Migrate(VersionMismatch(1)) since the develop merge (PR #117) brought in the comment edits from PR #122 (and earlier, PR #121's ce4307c). sqlx::migrate! hashes the FULL file content (including comments and whitespace) and panics on drift against _sqlx_migrations.checksum. Restore the byte-identical pre-rename content from 13155c1 (the prior hotfix for the same root cause on 0001) and b26a2d1 (for 0003). Per feedback_sqlx_migration_hash.md: future comment fixes must land in a follow-up migration, never in the versioned files themselves. 0006-0008 are not yet applied on DEV (DB only has 0001-0005), so their comment state is whatever ships first — the current "node" wording is fine going forward. --- node/migrations/0001_initial.sql | 4 ++-- node/migrations/0003_pending_inscriptions.sql | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/node/migrations/0001_initial.sql b/node/migrations/0001_initial.sql index d20ef81d..51be7007 100644 --- a/node/migrations/0001_initial.sql +++ b/node/migrations/0001_initial.sql @@ -1,9 +1,9 @@ --- Initial Postgres schema for the zkCoins node state-layer. +-- Initial Postgres schema for the zkCoins server state-layer. -- -- This migration is part of PR-A1 in the 3-PR Postgres migration -- series (file-based bincode -> Postgres). The schema is installed -- by `db::connect_and_migrate`; nothing here is wired into the --- node bootstrap yet — that happens in PR-A2 (state + latest block) +-- server bootstrap yet — that happens in PR-A2 (state + latest block) -- and PR-A3 (accounts + usernames). -- -- Design notes: diff --git a/node/migrations/0003_pending_inscriptions.sql b/node/migrations/0003_pending_inscriptions.sql index 16c46808..216e8c5c 100644 --- a/node/migrations/0003_pending_inscriptions.sql +++ b/node/migrations/0003_pending_inscriptions.sql @@ -41,7 +41,7 @@ -- instead of a silent state-machine drift. -- * The partial index on `status <> 'complete'` keeps the resumer's -- boot-time scan O(pending) instead of O(total). After enough --- mints this list will be perpetually empty on a healthy node. +-- mints this list will be perpetually empty on a healthy server. CREATE TABLE pending_inscriptions ( id BIGSERIAL PRIMARY KEY,