6

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

Gabriele Petronella
  • 106,943
  • 21
  • 217
  • 235
Johnny Everson
  • 8,343
  • 7
  • 39
  • 75

1 Answers1

7

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.

Johnny Everson
  • 8,343
  • 7
  • 39
  • 75
  • 2
    As I can see, this approach can work, but you need to copy whole `play_evoulutions` record from local to remote as it checking also checksum from apply_script. Anyway start with backup – biesior Sep 06 '12 at 18:10
  • Your suggestion worked. Put It in a answer so I can accept it. – Johnny Everson Sep 06 '12 at 18:21
  • It was your suggestion :), so add my comment to your answer, add some formatting and accept it in next 2 days :) – biesior Sep 06 '12 at 18:33