문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top