How to Introduce baselineOnMigrate for an Existing Database with Spring Boot + Flyway - Initializing baselineVersion and flyway_schema_history
Explains the procedure for introducing Flyway after the fact into a database that is already running with existing tables. Covers the baselineOnMigrate, baselineVersion, and baseline-description settings, separate configuration on the Gradle/Maven plugin side, dry-run verification using flyway info, the mechanism behind the initial baseline marker row created in flyway_schema_history, and the staging verification procedure, all explained with implementation code.