Skip to content

Conversation

@Kuzzy
Copy link

@Kuzzy Kuzzy commented Aug 25, 2021

Extend config to make possible to tune DB records for passed migrations more flexible:

  • Add nameField property to customize name of record key where migration name stored
  • Add dateField property to customize name of record key where migration date stored
  • Add namePrefix and nameWithoutExtension properties to make possible to customize migration name
  • Add additional logging in up method
  • Fix lint errors

It is necessary to make possible migration from other similar packages, in my case from db-migrate.

Checklist
  • npm test passes and has 100% coverage
  • README.md is updated

…ns more flexible

* Add `nameField` property to customize name of record key where migration name stored
* Add `dateField` property to customize name of record key where migration date stored
* Add `namePrefix` and `nameWithoutExtension` properties to make possible to customize migration name
* Add additional logging in `up` method
* Fix linting errors
@theogravity
Copy link

I've included this PR in https://github.com/theogravity/migrate-mongo-alt

# Conflicts:
#	lib/env/config.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants