0.0.7 • Published 12 months ago

pgroll v0.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

pgroll

pgroll is a 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 roll create <migration-name>
0.0.7

12 months ago

0.0.6

12 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago