We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd9e678 commit 597c515Copy full SHA for 597c515
upgrade_logic/business_objects/gateway.py
@@ -14,6 +14,18 @@
14
def gateway_1_16_0() -> bool:
15
__gateway_1_16_0_add_cognition_project_folder_defaults()
16
__gateway_1_16_0_add_cognition_project_tokenizer_defaults()
17
+ __gateway_1_16_0_add_metadata_markdown_files_defaults()
18
+ return True
19
+
20
21
+def __gateway_1_16_0_add_metadata_markdown_files_defaults() -> bool:
22
+ query = """
23
+ UPDATE cognition.markdown_file
24
+ SET meta_data = jsonb_build_object('extractor', 'pdf2markdown')
25
+ WHERE meta_data IS NULL
26
+ """
27
+ general.execute(query)
28
+ general.commit()
29
return True
30
31
0 commit comments