fix: 初始化 Flyway 历史表

org.flywaydb.core.api.FlywayException: Found non-empty schema(s)
`novel_test` but no schema history table. Use baseline() or set
baselineOnMigrate to true to initialize the schema history table.
This commit is contained in:
xiongxiaoyang 2024-07-15 18:07:29 +08:00
parent b4ce4dd35d
commit 8da6f8263c

View File

@ -20,6 +20,9 @@ spring:
threads:
virtual:
enabled: true
# initialize the schema history table
flyway:
baseline-on-migrate: true
server:
# 端口号
port: 8888