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
Revert "fix: remove MySQL document.meta_fields mapping to match Python schema" (#16981)
Yingfeng5ab424c10cfe
diff --git a/internal/entity/document.go b/internal/entity/document.goindex de23195d4c..9b25ff4663 100644--- a/internal/entity/document.go+++ b/internal/entity/document.go@@ -39,6 +39,7 @@ 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"`@@ -68,6 +69,7 @@ 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 23e25044a4..4afacafbf0 100644--- a/test/testcases/restful_api/conftest.py+++ b/test/testcases/restful_api/conftest.py@@ -252,7 +252,6 @@ 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