Official PostgreSQL adapter for the Migrat database migration tool (v0.2.0). Provides global locking and migration state storage/retrieval using PostgreSQL. Enables writing migrations in pure PSQL. Compatible with Migrat v0.x. Integrates with Migrat's plugin system and supports custom schema/table configuration. Key differentiator: allows pure SQL migrations instead of JavaScript.
npm install migrat-postgresNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configuration file for Migrat with PostgreSQL adapter, using env vars for credentials.
Ensure migrat is installed: npm install migrat
Use postgres({...}) not postgres alone.Include the required comment markers in SQL migrations.
npm install migrat
Replace import with const postgres = require('migrat-postgres');Change plugins: [postgres] to plugins: [postgres({...})]No dependency data recorded yet.