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

Log filename when executing migration #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hgrubst
Copy link

@hgrubst hgrubst commented May 22, 2019

Adding the full filename being executed during the migration.
Perhaps this is specific to our use case but we usually name our migration files based on release number and business area of the application that it applies to. Something like 20192205100500-service1-1.2.0.
We then use a different timestamp with the same migration name if we need another migration in that same release.
The timestamp therefore allows us to identify the release script we are executing precisely which is why logging the filename is useful we find.

# Conflicts:
#	lib/migrate.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.

1 participant