Postgrator
JSON →SQL migration tool for Node.js using plain SQL or JavaScript files, supporting PostgreSQL, MySQL, SQL Server, and SQLite. Version 8.0.0 requires Node >=20 and publishes TypeScript types. Postgrator is ESM-only as of v6, tracks migrations in a schema table, and automatically determines directional migration (up/down). Key differentiators: file-based versioning with .do.sql/.undo.sql convention, optional JS/async migration scripts, and no ORM dependency. Released under MIT license, maintained by Rick Bergfalk.
Resources
packagepostgrator ↗