Open alob-mtc opened 2 years ago
Go migrate works well, no need to add this functionality here. But i miss a diff cmd which would generate sql migration scripts so much.
I'm developing an app that currently uses Gorm as Postgres Orm. We are expected to deliver production ready code in January. How do you currently work around this issue with Gorm? Do you use it's Migrator interfaces? Would be extremely appreciative of some example projects using Gorm in production.
Gorm has an ORM is production ready for sure. Its auto-migrate isn't suitable for production environments has you tend to want to have move control over your database migration in a production setting, so you might need to use a different tool that lets you manage database migrations separately.
(https://github.com/alob-mtc/migrator) is a tool I’m developing to address this. Please Note that it’s still in development, and you are welcome to give it a try
Describe the feature
Example use of User-APIs
Creating Migrations
Running Migrations
Rolling Back Migrations
Example implementation in a stand-alone lib here (https://github.com/alob-mtc/migrator), but I am of the opinion that if gorm adopts this internally will be nice
Motivation
Related Issues