PostgreSQL adapter for the East database migration tool. This package provides the bridge between East (a Node.js migration framework) and node-postgres (pg) to manage PostgreSQL migrations. Version 1.0.2 is the current stable release. It stores executed migration names in a `_migrations` table and passes a `db` client instance to migration functions. The package requires explicit peer dependency on pg (>=4.x.x <=7.x.x). Compared to other migration tools like Knex or Umzug, East is minimal and follows a convention-over-configuration approach with a simple CLI.
npm install east-postgresNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up East with east-postgres, create a migration file, and define migrate/rollback functions using the provided db client from the pg library.
Pin pg to version <8.0.0 (e.g., npm install pg@^7.5.0).
Consider migrating to a modern alternative like node-pg-migrate, Umzug, or Knex migrations.
Rename the table by configuring East's options (if supported) or accept the default name.
Always access client.db to get the pg client.
Run: npm install east east-postgres -g (or locally without -g).
Ensure PostgreSQL is running on the specified host/port. Check .eastrc url value.
Ensure you are accessing client.db (not client directly) and that pg version is between 4 and 7.