All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
Fixed:
- Dependency
sequelize
updated to v5.
Fixed:
- Sequelize hooks should not execute hooks when executing model operations.
Fixed:
- Codebase refactored.
- Dependencies updated.
Fixed:
- Determining versions to migrate through (up/down).
Added:
- CLI options:
-f, --force
: force migration to be executed
Changed:
- Codebase refactored to TypeScript
- Import paths:
require("@forfuture/migrate/integrations")
changed torequire("@forfuture/migrate/dist/integrations")
- CLI options:
-i, --init-path <path>
changed to-c, --config-path <path>
-c, --current <version>
changed to-x, --current <version>
- CLI defaults:
- path to configuration file;
./script/migrate
changed to./scripts/config/migration
- path to migrations;
./script/migrations
changed to./scripts/migrations
- target version must be specified using
--undo
,--latest
,--package-path
or<version>
CLI arg
- path to configuration file;
- Debug:
debug
prefix changed frommigrate
to@forfuture/migrate
Fixed:
- CLI options:
-l, --latest
changed to-z, --latest
;-l
is used alongside--list
Removed:
- CLI defaults:
- default path to package/manifest file removed;
-p, --package-path <path>
- default path to package/manifest file removed;
Added:
- Add CLI options:
--package-path
--latest
Changed:
- By default, migrations will not migrate to latest version.
Instead, the migration will migrate to the version specified in
relevant package file (e.g.
package.json
). Use--latest
CLI option to revert to earlier behaviour.
Fixed:
- integrations/sequelize: Fix running on a fresh database
Out in the Wild