org.flywaydb.core.api.FlywayException: Found non-empty schema(s) `db` but no schema history table. Use baseline() or set baselineOnMigrate to true to initialize the schema history table.

==

spring:
flyway:
enabled: true
baseline-on-migrate: true
clean-on-validation-error: true
本文讨论了在使用Spring框架的Flyway数据库迁移工具时,遇到的非空schema且没有schemahistorytable的问题,强调了设置`baseline-on-migrate`为true以初始化表的重要性,并提及了`clean-on-validation-error`的配置。
1207

被折叠的 条评论
为什么被折叠?



