Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix(tools): guard temporary table creation during mysql_migration dry run (#19570) (#19623)

Ritik Yadavde3944b67593
diff --git a/tools/scripts/mysql_migration.py b/tools/scripts/mysql_migration.py
index 05217a9160..0cdaeaadcd 100644
--- a/tools/scripts/mysql_migration.py
+++ b/tools/scripts/mysql_migration.py
@@ -1613,7 +1613,8 @@ class ModelTypeMergeStage(MigrationStage):
return 0, []
# Create temporary table with model_type as INTEGER
- self.create_target_table()
+ if not self.dry_run:
+ self.create_target_table()
if self.create_table_only:
logger.info("[CREATE TABLE ONLY] Temporary table created, skipping data merge")