From 6bd6b005181b1b7a74de621765053c3561a21db7 Mon Sep 17 00:00:00 2001 From: cat_shark <1716967236@qq.com> Date: Sat, 30 May 2026 09:22:16 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"Revert=20"revert:=20=E6=81=A2?= =?UTF-8?q?=E5=A4=8D=20flyway=20validate-on-migrate=20=E4=B8=BA=20true""?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 82948e3ff9473ea3d0be5ede3bcbf40183af91cd. --- src/main/resources/application.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index af94126..369bfdc 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -15,9 +15,7 @@ spring: # SQL 迁移文件的后缀,默认为 .sql sql-migration-suffixes: .sql # 是否在迁移时进行验证,默认为 true - validate-on-migrate: false - # 自动修复 checksum 不一致 - repair-on-migrate: true + validate-on-migrate: true # 如果 true,首次迁移时基于现有 schema 创建 baseline,这通常用于将 Flyway 集成到已存在的数据库项目中 baseline-on-migrate: true jackson: