mattes / migrate

Database migrations. CLI and Golang library.
Other
2.29k stars 326 forks source link

--dry-run flag when running migrations #304

Open ealves-pt opened 6 years ago

ealves-pt commented 6 years ago

I am looking for a way to test the migrations before actually running them. For example, running migrate up 1 --dry-run would begin a transaction run the migration and rollback in the end.

Is there any sort of workaround to achieve this?