Skip to content

docs: document PostgreSQL SQL migration preflight checks - #726

Open
flvmnt wants to merge 1 commit into
sequelize:mainfrom
flvmnt:codex/pgfence-postgres-preflight
Open

flvmnt wants to merge 1 commit into
sequelize:mainfrom
flvmnt:codex/pgfence-postgres-preflight

Conversation

@flvmnt

@flvmnt flvmnt commented Sep 30, 2026

Copy link
Copy Markdown

The custom SQL resolver examples show how to execute migration files, but do not describe checking PostgreSQL lock risks before execution. Adds a short optional preflight example for explicitly selected forward SQL files, with a pinned pgfence version, CI exit behavior, and the separate Node.js 20 requirement.

The section explains that rollback files need separate review and that the command does not discover pending migrations, inspect JavaScript callbacks or runtime SQL, or verify the database schema and workload. No dependency or runtime changes. I maintain pgfence.

Validation: ran the documented command using the published @flvmnt/pgfence@0.8.1 package with telemetry disabled. A nullable-column migration exited 0; an ALTER COLUMN TYPE migration and a migration missing lock_timeout exited 1. The added section passes Prettier 3.8.1 and git diff --check passes. No runtime tests changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant