From 8da6f8263cc930392666051a78a453f3903cca9c Mon Sep 17 00:00:00 2001 From: xiongxiaoyang <1179705413@qq.com> Date: Mon, 15 Jul 2024 18:07:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=9D=E5=A7=8B=E5=8C=96=20Flyway=20?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/main/resources/application.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 19bd297..4c0957d 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -20,6 +20,9 @@ spring: threads: virtual: enabled: true + # initialize the schema history table + flyway: + baseline-on-migrate: true server: # 端口号 port: 8888