RAGFlow is a leading open-source Retrieval-Augmented Generation (RAG) engine that fuses cutting-edge RAG with Agent capabilities to create a superior context layer for LLMs
fix(migration): parameterize tenant_model_provider inserts in mysql_migration (#15313)
### Related issues Closes #15312 ### What problem does this PR solve? `tools/scripts/mysql_migration.py` built batch INSERT SQL for the `tenant_model_provider` stage using f-strings with raw `llm_factory` and `tenant_id` values. If either value contained a single quote, migration SQL could fail; this also created unnecessary SQL-injection risk in the migration path. This PR replaces string interpolation with parameterized SQL placeholders in `TenantModelProviderStage.execute()`. The migration now safely handles quoted values and executes deterministically across existing tenant data.
J
jony376 committed
088d8448aea149b42bc9702d6b44cdf044ff508c
Parent: 09d0a17
Committed by GitHub <noreply@github.com>
on 6/2/2026, 2:29:41 AM