@learningalbum/knex-migrations-check

1.0.1 • Public • Published

Knex migration check command

This library provide a command to check if knex migrations are pending or not.

how to use

After install it add a new line on your package.json under scripts file:

  ...
  "scripts": {
    "kmc": "kmc ./knexfile"
  },

kmc command require a parameter, the path to your knexfile without it's extension. knexfile needs to follow the standard Knex.Config model. Also required for the command is a migrations folder on main root of the project. Refer to the Knex documentation for more information about migrations.

kmc command will return an exit 1 if migrations are pending and exit 0 if not.

/@learningalbum/knex-migrations-check/

    Package Sidebar

    Install

    npm i @learningalbum/knex-migrations-check

    Weekly Downloads

    2

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    6.97 kB

    Total Files

    7

    Last publish

    Collaborators

    • gblair
    • eduardochiaro