Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend config for tuning migrations DB records #394

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

None yet

2 participants