Commit c9aec87
fix: Disable Spring AI schema auto-initialization for PostgreSQL
Spring AI was attempting to execute H2-specific schema (schema-h2.sql) on PostgreSQL,
causing infinite restart loop due to unsupported CLOB type.
Changes:
- Set spring.sql.init.mode to never in application.yml
- Add spring.ai.vectorstore.jdbc.initialize-schema: false in application-prod.yml
- Remove schema-locations pointing to H2 schema
Fixes database initialization error: type "clob" does not exist
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent dd6366c commit c9aec87
2 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
| 57 | + | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
0 commit comments