See #17539 for background. It would be nice if instead of listing all different migrations we could have an easy way to say "depends on anything that migrates the database"

Comment From: snicoll

We're considering a dedicated event in Spring Framework to get a chance to do the initialization before anyone start using the DataSource, see https://github.com/spring-projects/spring-framework/issues/21362 for more details.

Comment From: philwebb

I thought we might have something lined up. There's probably a Boot issue open as well.

Comment From: snicoll

A few, actually. https://github.com/spring-projects/spring-boot/issues/13042 and https://github.com/spring-projects/spring-boot/issues/17528

Comment From: wilkinsona

I've sketched something out for this here. There's a rough description in the javadoc and some thoughts on possible ways in which it could be changed.