[scala-2.0.x] How to apply evolutions manually and mark as resolved

560 views
Skip to first unread message

Everson Alves da Silva

unread,
Sep 6, 2012, 2:02:08 PM9/6/12
to play-fr...@googlegroups.com

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

I tried without success: Apply the evolutions locally, copy the values of hash, applied_at from table play_evolutions and update the production database with corresponding values.

sas

unread,
Sep 7, 2012, 10:40:47 AM9/7/12
to play-fr...@googlegroups.com
I think it's always eaiser to just prepare your evolutions to prepare your database from scratch... it's more simple and safer to just dump the whole thing and start from scratch, at least in dev mode, of course...

biesior

unread,
Sep 7, 2012, 11:32:49 AM9/7/12
to play-fr...@googlegroups.com

Everson Alves

unread,
Sep 7, 2012, 1:34:17 PM9/7/12
to play-fr...@googlegroups.com
Yes, solved. Thanks.

Please someone let me know if cross-post is forbidden. I waited a lot of hours before asking here. 

2012/9/7 biesior <bie...@gmail.com>
As far as I know author resolved this problem: http://stackoverflow.com/questions/12305469/how-to-apply-evolutions-manually-and-mark-as-resolved-on-play-framework-2

W dniu piątek, 7 września 2012 16:40:47 UTC+2 użytkownik sas napisał:
I think it's always eaiser to just prepare your evolutions to prepare your database from scratch... it's more simple and safer to just dump the whole thing and start from scratch, at least in dev mode, of course...

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/dp-ot-Mqbe8J.

To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.



--
Jhonny Everson
Reply all
Reply to author
Forward
0 new messages