dbmate icon indicating copy to clipboard operation
dbmate copied to clipboard

Comparison of dbmate vs sqitch or flyway

Open halostatue opened this issue 2 years ago • 4 comments

Both sqitch and flyway are mature alternatives that would be good to add to your comparison, although they have somewhat larger requirements (Perl for sqitch, Java for flyway).

halostatue avatar Dec 15 '21 01:12 halostatue

One of the things that’s really nice about sqitch is that it has three pieces to each migration, each as a separate file:

  • up
  • down
  • verify

The verify step encourages people to write a query that confirms that the migration happened successfully. It can also integrate with pgTAP for Postgres, to enable unit testing.

halostatue avatar Dec 15 '21 01:12 halostatue

Nice tools. Are you willing to propose a change in the comparison table by opening a pull request? :-)

Enrico204 avatar Jan 27 '22 14:01 Enrico204

I can do sqitch (it’s what we use at work), but I know almost nothing about flyway except that it exists. I’ve also made sqitch much easier to use for us by putting it in a Docker image complete with pgTAP.

halostatue avatar Jan 27 '22 16:01 halostatue

Good! We can integrate sqitch now, and then see if anyone else uses flyway :-)

Enrico204 avatar Jan 27 '22 16:01 Enrico204