mattes / migrate

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

Rollback strategy #254

Closed varunrau closed 6 years ago

varunrau commented 7 years ago

What's the recommended strategy for handling rollbacks? Perhaps we could document this ☺️

ifraixedes commented 7 years ago

down migrations are for such purpose.

The issue is that if you have deployed in production, the rollback may not only need to remove the part of the schema that the migrations has made, because it may happen that some data has been inserted and depending of the changes that the schema has suffered in the migration, you may want to do some thing (update, move, backup, etc.) with data rather than just destroying it.

JensRantil commented 6 years ago

@varunrau: @ifraixedes answered your question, right? I believe this issue can be closed.

varunrau commented 6 years ago

oops sorry missed the reply. Yeah we can close this