Home

Awesome

migradaptor

Tool for adapting migration files for different library formats. Current version allows to adapt to golang-migrate from several sources:

Test

About

Once I faced with an issue to change our corporate migrations library in Golang from rubenv/sql-migrate to golang-migrate and it was so hard. There are several caveats that you should know about, so it can save you some time:

That's why I decided to start this lib. I hope there will be more sources (like rubenv/sql-migrate), so people can save time if they need to change their migration lib and adapt their migration files from one format to another. Feel free to suggest an Issue or PR.

Getting started

Install

go install github.com/musinit/migradaptor/...@latest

Use

migradaptor -src={source_folder} -dst={destination_folder}

Supported migrations source formats

Questions or Feedback?

You can use GitHub Issues for feedback or questions.

TODO