Skip to content

tnht95/pgroll

Repository files navigation

pgroll

pgroll is a thread-safe, lightweight and flexible database migration tool for PostgreSQL

PostgreSQL clients currently supporting:

  • PostgresJS
  • pg
  • ...

postgresjs client. It offers simple commands to manage your database schema changes with up, down, create, and go features.

Features

  • up: Apply all pending migrations.
  • down: Rollback the last applied migration.
  • create: Create new migration files.
  • go: Migrate the database schema to a specific version.

Installation

You can install pgroll via npm:

npm install pgroll

Usage

Command Line Interface (CLI)

pgroll provides a CLI to manage your database migrations. Below are the available commands:

Running the CLI

  1. Run Migrations Up:
npx pgroll up
  1. Run Migrations Down:
npx pgroll down
  1. Navigate to a Specific Version:
npx pgroll go <version>
  1. Create New Migration Files:
npx pgroll create <migration-name>

About

Another database migration tool for PostgreSQL - currently supporting PostgresJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors