Knex Migrate Versions Save

Modern database migration toolkit for knex.js

v1.7.2

4 years ago

Added

  • Allow specifying knexConfig programmatically (#26)
  • Allow for specify config programatically with config argument
  • Change migrations pattern to accept typescript (.ts) migration script

Fixed

  • Pass custom knexfile to redo command, fixes #41

v1.5.0

4 years ago

Changed

  • Add programmatic API
  • Ability to disable transactions with --raw flag
  • Redact connection string in verbose mode (to not leak password)
  • Support for generating migrations

Fixed

  • Gracefully destroy connection pool
  • Limit connection pool to one connection

v1.4.0

4 years ago

Changed

  • Add ability to migrate in steps (--step flag)

v1.3.0

4 years ago

Changed

  • Use migrations path in knexfile.js when available, fixes #4
  • Order migrations by id instead of created_at, fixes #6

v1.2.0

4 years ago

Changed

  • compatibility: Use Bluebird promise library instead of native one
  • compatibility: Respect knexfile configuration without environment namespaces

Added

  • cwd, knexfile, migrations, table, env, and verbose flags