Skip to content

Latest commit

 

History

History
171 lines (103 loc) · 4.67 KB

CHANGELOG.md

File metadata and controls

171 lines (103 loc) · 4.67 KB

knex-migrator Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

3.2.6 (2019-03-20)

Bug fixes

  • 🐛 Fixed knex-migrator migrate --init

3.2.1 (2019-03-20)

Bug fixes

  • 🐛 Fixed option collision with commander (--version vs --v)

3.2.0 (2019-03-20)

Features

✨ Added ability to rollback to a specific version

3.1.6 (2018-04-30)

Node

  • 🔥Drop Node v4 support

Bug fixes

  • 🐛Fixed incorrect version number comparison
  • 🐛Fixed wrong folders order on db initialisation
  • 🐛Fixed comparing expected and actual migration tasks

3.1.3 (2018-01-02)

Improvements

  • Optimised error message for lock
  • Added support for specifying the config via options

3.1.2 (2017-12-05)

Improvements

  • Make database upgrades more relaxed

3.1.1 (2017-12-05)

Improvements

  • Added protection against database migrations

3.1.0 (2017-12-05)

Improvements

  • Added more database upgrades
  • Added unique constaint to the migrations table
  • Define field lengths for migrations table

3.0.10 (2017-12-04)

Fixes

  • Fixed acquired_at and released_at with correct date format

3.0.9 (2017-12-04)

Fixes

  • Do not unlock if lock was never acquired

3.0.8 (2017-12-04)

Fixes

  • Added more npm keywords
  • Rollback should not happen if lock was never acquired

3.0.7 (2017-11-15)

Fixes

  • Added missing --force flag for knex-migrator reset

3.0.6 (2017-11-04)

Fixes

  • Do not throw error on reset, otherwise it's harder to handle this via the JS API
  • There is no good reason to throw an error, so revert to success response

3.0.5 (2017-11-04)

Fixes

  • Fixed order of rollback

3.0.4 (2017-11-04)

Fixes

  • Fixed rollback for init scripts

3.0.3 (2017-11-04)

Fixes

  • Fixed --force flag for knex-migrator rollback

3.0.2 (2017-11-03)

Fixes

  • Fixed missing throw/catch behaviour,

3.0.1 (2017-11-03)

Fixes

  • Fixed binary for knex-migrator rollback

3.0.0 (2017-11-03)

Breaking Changes

  • You have to export up and down in your migration scripts. down is optional, but highly recommended, otherwise on failure your changes won't rollback completely.
  • The options object which is passed into the migration script contains now by default a connection object. (options.connection). You have to explicit enable transactions, see README.
  • A new migrations lock table get's added as soon as you run any command. You don't have to worry about that.
  • Expect bug fixes in the upcoming days.

Features

  • Support full rollback (auto rollback on error)
  • Shutdown hook
  • Concurrency and locking
  • A new shiny rollback command for manual rollback if needed.

2.1.9 (2017-10-26)

Features

  • Enabled Node 8 Support

2.1.9 (2017-10-24)

Fixes

  • Fixed migration order on db initialisation