All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
Fixed:
- Dependency
sequelizeupdated 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/migratechanged to./scripts/config/migration - path to migrations;
./script/migrationschanged to./scripts/migrations - target version must be specified using
--undo,--latest,--package-pathor<version>CLI arg
- path to configuration file;
- Debug:
debugprefix changed frommigrateto@forfuture/migrate
Fixed:
- CLI options:
-l, --latestchanged to-z, --latest;-lis 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--latestCLI option to revert to earlier behaviour.
Fixed:
- integrations/sequelize: Fix running on a fresh database
Out in the Wild