fix(deploy): make stage_test_principal migration idempotent and resolve existing migrations before deploy
Deploy Canina / deploy (push) Successful in 1m7s

This commit is contained in:
parsa aghaei committed 2026-10-26 14:00:35 +03:30
1 parent 432f6a21c7
commit 292ed7f920
2 files changed
+5 -2

No files matched your search

@@ -1 +1 @@
ALTER TABLE "users" ADD COLUMN "auth_expires_at" TIMESTAMPTZ, ADD COLUMN "stage_test_session" VARCHAR(64), ADD COLUMN "stage_test_generation" UUID;
ALTER TABLE "users" ADD COLUMN IF NOT EXISTS "auth_expires_at" TIMESTAMPTZ, ADD COLUMN IF NOT EXISTS "stage_test_session" VARCHAR(64), ADD COLUMN IF NOT EXISTS "stage_test_generation" UUID;
+4 -1
View File
@@ -149,10 +149,13 @@ sleep 15
echo "Applying committed database migrations..."
for migration in \
20261013210253_add_admin_modules \
20261015000000_add_support_conversations \
20261020000000_add_blog_freshness_authorship \
20261022000000_add_orchestration_v4_core \
20261022190000_harden_orchestration_ledger \
20261023170000_prepare_workflow_outbox \
20261024060000_prepare_not_before; do
20261024060000_prepare_not_before \
20261024090000_stage_test_principal; do
docker exec -e PRISMA_HIDE_UPDATE_MESSAGE=true "${CONTAINER_PREFIX}" npx prisma migrate resolve --applied "$migration" >/dev/null 2>&1 || true
done
docker exec -e PRISMA_HIDE_UPDATE_MESSAGE=true "${CONTAINER_PREFIX}" npx prisma migrate deploy