How to apply evolutions manually and mark as resolved on play framework 2
-
30-06-2021 - |
Domanda
Is it to possible mark evolutions as applied in playframework 2?
Scenario: I had to change an already applied evolution file because it was incompatible with H2 causing the remaining evolutions not to be applied during tests. So, I fixed it. Now the application wants to reapply the modified evolutions. I want to just "mark resolved" without applying (and avoid drop to recreate the tables.)
Soluzione
Apply the evolutions locally, dump the whole table play_evolutions
and restore into the production database. See the comment of @biesior to understand why we need all fields.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow