mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-17 05:07:23 +08:00
Revert "fix: remove MySQL document.meta_fields mapping to match Python schema" (#16981)
Reverts infiniflow/ragflow#16929
This commit is contained in:
@@ -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"`
|
||||
|
||||
@@ -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()
|
||||
yield
|
||||
duration = time.perf_counter() - start
|
||||
|
||||
Reference in New Issue
Block a user