We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbe722b commit 3b80d83Copy full SHA for 3b80d83
1 file changed
.github/workflows/migrations.yml
@@ -62,6 +62,12 @@ jobs:
62
echo "ERROR: no database URL secret resolved for environment '${ENVIRONMENT}'" >&2
63
exit 1
64
fi
65
+ case "$DATABASE_URL" in
66
+ *:6432*)
67
+ echo "ERROR: '${ENVIRONMENT}' database URL targets PgBouncer (port 6432); migrations need a direct connection (port 5432) — session advisory locks and SET don't survive transaction pooling" >&2
68
+ exit 1
69
+ ;;
70
+ esac
71
72
if [ "${ENVIRONMENT}" = "dev" ]; then
73
echo "Dev environment — pushing schema directly (db:push)"
0 commit comments