Question

I was wondering how Flyway handles exceptions thrown from classes that implement the JdbcMigration interface.

Does Flyway roll back the transaction? Does it stop doing further migrations?

Was it helpful?

Solution

Does Flyway roll back the transaction?

Yes, it will rollback the transaction until the latest well executed script or latest commit done. Then it will log the Exception and notify you (depending how you configure it).

Does it stop doing further migrations?

AFAIK that's the common behavior, it will stop if it encounters an error.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top