Node.js database migration management built exclusively for postgres. (But can also be used for other DBs conforming to SQL standard - e.g. CockroachDB.) Started by Theo Ephraim, now maintained by Salsita Software. Installing this module adds a runnable file into your node_modules/.bin directory. If installed globally (with the -g option), you can run node-pg-migrate and if not, you can run ./node_modules/.bin/node-pg-migrate. Add "migrate": "node-pg-migrate" to scripts section of package.json so you are able to quickly run commands. Run npm run migrate create my first migration. It will create file xxx_my-first-migration.js in migrations folder. Now you should put your DB connection string to DATABASE_URL environment variable and run npm run migrate up. (e.g. DATABASE_URL=postgres://test:test@localhost:5432/test npm run migrate up).

Features

  • Everything is async in node
  • Licensed under the MIT License (MIT)
  • Save migration files
  • Built exclusively for postgres
  • Quickly run command
  • Full docs are available

Project Samples

Project Activity

See All Activity >

Categories

Database

License

MIT License

Follow node-pg-migrate

node-pg-migrate Web Site

You Might Also Like
Free and Open Source HR Software Icon
Free and Open Source HR Software

OrangeHRM provides a world-class HRIS experience and offers everything you and your team need to be that HR hero you know that you are.

Give your HR team the tools they need to streamline administrative tasks, support employees, and make informed decisions with the OrangeHRM free and open source HR software.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of node-pg-migrate!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Database Software

Registered

2022-07-27