Skip to content
This repository has been archived by the owner on Jun 28, 2018. It is now read-only.

Proposed fix for migration file name clashes #48

Merged
merged 3 commits into from
Sep 15, 2015
Merged

Proposed fix for migration file name clashes #48

merged 3 commits into from
Sep 15, 2015

Conversation

johnweldon
Copy link
Contributor

This is a proposed fix for #45

I added a unit test to demonstrate the issue, and a proposed solution. Both the test and the fix could be leveraged for more refactoring if that's of interest.

Added a unit test to demonstrate the problem in issue #45

The introduced makeFiles() function could be used to simplify the other
tests too, but I didn't touch more than necessary for this commit.
This is the bare minimum proposed fix for #45

By using a nested map the way I do in this PR we could also simplify the
logic further down where we look for matching direction.Up or
direction.Down migrations.
mattes added a commit that referenced this pull request Sep 15, 2015
Proposed fix for migration file name clashes
@mattes mattes merged commit e857fcc into mattes:master Sep 15, 2015
@mattes
Copy link
Owner

mattes commented Sep 15, 2015

Thanks! 👍

@johnweldon johnweldon deleted the 45-migration-file-id-clash branch September 15, 2015 18:26
@johnweldon
Copy link
Contributor Author

Thanks @mattes

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants