Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 370
Johnny Everson Avatar asked Sep 06 '12 17:09

Johnny Everson


1 Answers

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.

like image 73
Johnny Everson Avatar answered Nov 01 '22 00:11

Johnny Everson