RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
fix: remove MySQL document.meta_fields mapping to match Python schema (#16929)
euvre30de65991b30
diff --git a/internal/entity/document.go b/internal/entity/document.goindex 9b25ff4663..de23195d4c 100644--- a/internal/entity/document.go+++ b/internal/entity/document.go@@ -39,7 +39,6 @@ type Document struct {ProcessBeginAt *time.Time `gorm:"column:process_begin_at;index" json:"process_begin_at,omitempty"`ProcessDuration float64 `gorm:"column:process_duration;default:0" json:"process_duration"`ContentHash *string `gorm:"column:content_hash;size:32;index" json:"content_hash,omitempty"`- MetaFields *JSONMap `gorm:"column:meta_fields;type:longtext" json:"meta_fields,omitempty"`Suffix string `gorm:"column:suffix;size:32;not null;index" json:"suffix"`Run *string `gorm:"column:run;size:1;index" json:"run,omitempty"`Status *string `gorm:"column:status;size:1;index" json:"status,omitempty"`@@ -69,7 +68,6 @@ type DocumentListItem struct {ProcessBeginAt *time.Time `gorm:"column:process_begin_at" json:"process_begin_at,omitempty"`ProcessDuration float64 `gorm:"column:process_duration" json:"process_duration"`ContentHash *string `gorm:"column:content_hash" json:"content_hash,omitempty"`- MetaFields *string `gorm:"column:meta_fields" json:"meta_fields,omitempty"`Suffix string `gorm:"column:suffix" json:"suffix"`Run *string `gorm:"column:run" json:"run,omitempty"`Status *string `gorm:"column:status" json:"status,omitempty"`diff --git a/test/testcases/restful_api/conftest.py b/test/testcases/restful_api/conftest.pyindex 4afacafbf0..23e25044a4 100644--- a/test/testcases/restful_api/conftest.py+++ b/test/testcases/restful_api/conftest.py@@ -252,6 +252,7 @@ def ensure_parsed_document(rest_client, create_document):@pytest.hookimpl(tryfirst=True, hookwrapper=True)def pytest_runtest_protocol(item, nextitem):import time+start = time.perf_counter()yieldduration = time.perf_counter() - start