From 848a3991f5ae43903290a3ebdfbfb28bb273e104 Mon Sep 17 00:00:00 2001 From: matevip Date: Sun, 3 May 2026 17:14:31 +0800 Subject: [PATCH] fix(flyway): disable placeholder-replacement so V85 ckjia seed's ${ENV_VAR} survives intact --- mateclaw-server/src/main/resources/application.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mateclaw-server/src/main/resources/application.yml b/mateclaw-server/src/main/resources/application.yml index 04def5c0..1ad6b121 100644 --- a/mateclaw-server/src/main/resources/application.yml +++ b/mateclaw-server/src/main/resources/application.yml @@ -53,6 +53,14 @@ spring: - classpath:db/migration/h2 validate-on-migrate: true clean-disabled: true + # Disable Flyway's built-in ${...} placeholder substitution. Some migrations + # (e.g. V85 ckjia MCP seed) intentionally store ${ENV_VAR} literals so that + # mateclaw's runtime header parser (McpClientManager.parseHeaders) can + # expand them at request time. Flyway would otherwise try to resolve those + # tokens at migration time and fail with "No value provided for placeholder". + # Safe to disable globally because no migration in this project relies on + # Flyway-side ${...} substitution. + placeholder-replacement: false h2: console: