在idea控制台使用: mvn flyway:migrate
出现报错问题
Caused by: org.flywaydb.core.api.FlywayException: Found non-empty schema(s) xxx
without schema history table! Use baseline() or set baselineOnMigrate to true to initialize the schema history table.
解决方法
在application.properties设置flyway.baselineOnMigrate=true
如果解决不了还报相同的错误
请看看数据库中是否有V1__xxxx.sql要创建的数据库表一样的名字,有一样的请删掉一样的数据库中的表或者修改V1__xxxx.sql内容中要新建的表的名字