gofr-dev / gofr

An opinionated GoLang framework for accelerated microservice development. Built in support for databases and observability.
https://gofr.dev
Apache License 2.0
1.72k stars 153 forks source link

Add support for YML migration files #758

Closed max-chem-eng closed 1 month ago

max-chem-eng commented 2 months ago

Add support for writing migration files in yml

Abstracting the parameters for creating/updating tables to a simple yml file would make the code easier to read and maintain and reduces boilerplate code

srijan-27 commented 1 month ago

The migrations are easily written in go itself as per the current implementation. Reference: https://gofr.dev/docs/advanced-guide/handling-data-migrations

So, I believe adding an extra layer over migrations would not be a good thing to do.