You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
instinctively I agree with you. Reality makes it a little harder to perform this change though.
Up to now, Flyway performs an automatic validation before migrating. This combined with the semantics of the target property makes it difficult to support this intuitively. For now. I'll revisit this for 1.5 to see if we can find a solution.
From sto...@gmail.com on October 02, 2012 13:43:53
I support this, though I am not sure whether it is sensible to merge this functionality into the .validate() function - perhaps there should be a .isUptodate() check. A programmatical check whether the database is updated is a very nice thing to have. Usecase: for organisatorical reasons the updates are done separately when the application is down, but the application should scream if someone forgot to update the database up to its level.
From msz...@wp.pl on November 30, 2012 12:28:09
I also expected validate to do that check, but in fact validate already does a separate check and I think it should be somehow configurable which validation should be done (only changes in scripts, not applied migration or both).
I would like to be able to make a full validation (both mentioned) in an application's configuration on production environments (to fail fast on startup), so preferable one method to be able to "call" it from Spring.