From 6de5e275fab57dd50bdc8132dcd0e08805bd7c40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Guti=C3=A9rrez?= <35082514+alezmad@users.noreply.github.com> Date: Sat, 2 May 2026 16:45:36 +0100 Subject: [PATCH] chore(broker): comment migrate skip flag as break-glass only Now that the filename-tracked runner is in place and prod is bootstrapped, BROKER_SKIP_MIGRATE=1 is no longer needed. Removed from Coolify env; the comment is updated to reflect that the flag is a break-glass for ops, not the steady-state. Co-Authored-By: Claude Opus 4.7 (1M context) --- apps/broker/src/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/broker/src/index.ts b/apps/broker/src/index.ts index 6cb5c4a..60551ff 100644 --- a/apps/broker/src/index.ts +++ b/apps/broker/src/index.ts @@ -4875,10 +4875,10 @@ async function recoverScheduledMessages(): Promise { } async function main(): Promise { - // Auto-migrate: skip when BROKER_SKIP_MIGRATE=1 (e.g. when the prod - // DB was already manually migrated and the drizzle tracking table is - // out of sync). Once drizzle's __drizzle_migrations is caught up, - // remove the flag. + // Auto-migrate via the filename-tracked runner (mesh.__cmh_migrations). + // The legacy BROKER_SKIP_MIGRATE=1 escape hatch is preserved as a + // break-glass for ops; under normal operation the runner is fast (<1s + // when up-to-date) and idempotent so the flag should stay unset. if (process.env.BROKER_SKIP_MIGRATE !== "1") { const { runMigrationsOnStartup } = await import("./migrate"); await runMigrationsOnStartup();