Search code examples
scalaplayframework-2.0playframework-evolutions

How to apply evolutions manually and mark as resolved on play framework 2


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.)


Solution

  • 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.