From 898d3973c0050454fceb902cea91804e7e8ca483 Mon Sep 17 00:00:00 2001 From: Randall Stillwell Date: Tue, 2 Jun 2026 08:49:10 -0500 Subject: [PATCH] fix(migrations): retimestamp scan tables after initial-schema. Fresh CI/postgres runs failed because 1748365200000 sorted before initial-schema. Renamed to 1779853647566 with IF NOT EXISTS guards intact. Co-authored-by: Cursor --- docs/SCHEMA_MAP.md | 2 +- ...0_add-scan-tables.js => 1779853647566_add-scan-tables.js} | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) rename migrations/{1748365200000_add-scan-tables.js => 1779853647566_add-scan-tables.js} (85%) diff --git a/docs/SCHEMA_MAP.md b/docs/SCHEMA_MAP.md index 90f491a..9a46511 100644 --- a/docs/SCHEMA_MAP.md +++ b/docs/SCHEMA_MAP.md @@ -178,7 +178,7 @@ ### card_submissions -Added by `migrations/1748365200000_add-scan-tables.js` (server-side scan pipeline). Unknown high-confidence scans queue here for admin review instead of polluting `cards`. +Added by `migrations/1779853647566_add-scan-tables.js` (server-side scan pipeline). Unknown high-confidence scans queue here for admin review instead of polluting `cards`. | Column | Type | Notes | | --- | --- | --- | diff --git a/migrations/1748365200000_add-scan-tables.js b/migrations/1779853647566_add-scan-tables.js similarity index 85% rename from migrations/1748365200000_add-scan-tables.js rename to migrations/1779853647566_add-scan-tables.js index 310ff72..2cddb01 100644 --- a/migrations/1748365200000_add-scan-tables.js +++ b/migrations/1779853647566_add-scan-tables.js @@ -1,6 +1,11 @@ /** * card_submissions + scan_attempts for server-side scan pipeline. * + * Retimestamped from 1748365200000 → 1779853647566 so fresh DBs run + * initial-schema before scan tables (FK to users). Existing envs that + * already recorded the old name in pgmigrations are unaffected; IF NOT EXISTS + * guards make re-application safe if the new name is pending. + * * @type {import('node-pg-migrate').ColumnDefinitions | undefined} */ export const shorthands = undefined;