migr8r
Easily run Postgres migrations using SQL files
Last updated a year ago by benhjames .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install migr8r 
SYNC missed versions from official npm registry.

migr8r

Easily run Postgres migrations using SQL files

oclif Version CircleCI Appveyor CI Codecov Downloads/week License

Usage

$ npm install -g migr8r
$ migr8r COMMAND
running command...
$ migr8r (-v|--version|version)
migr8r/0.0.0 darwin-x64 node-v10.1.0
$ migr8r --help [COMMAND]
USAGE
  $ migr8r COMMAND
...

Commands

migr8r help [COMMAND]

display help for migr8r

USAGE
  $ migr8r help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

migr8r migrate

Run .sql files

USAGE
  $ migr8r migrate

OPTIONS
  -c, --connectionString=connectionString
  -d, --dir=dir                            [default: .]
  -h, --help                               show CLI help

EXAMPLE
  $ migr8r migrate
  Migrating...

See code: src/commands/migrate.ts

migr8r migrate:create NAME

Create a migration .sql file

USAGE
  $ migr8r migrate:create NAME

ARGUMENTS
  NAME  The name of the migration to create.

OPTIONS
  -d, --dir=dir  [default: .]
  -h, --help     show CLI help

EXAMPLE
  $ migr8r migrate:create add-user-table
  Creating migration: 2018-01-01-01-01-01-add-user-table.sql

See code: src/commands/migrate/create.ts

migr8r run [PATH]

Run .sql files

USAGE
  $ migr8r run [PATH]

OPTIONS
  -c, --connectionString=connectionString
  -h, --help                               show CLI help

EXAMPLE
  $ migr8r run path/to/file.sql
  Running...

See code: src/commands/run.ts

Current Tags

  • 1.0.0                                ...           latest (a year ago)

1 Versions

  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (11)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |