12
12
13
13
14
14
def gateway_1_15_0 () -> bool :
15
- # here, we update data for cognition using the gateway pattern
16
- # as the corresponding database updates (alembic) are managed using the refinery gateway it is
17
- # ensured that these updates are executed at the correct time
18
- __gateway_1_15_0_add_cognition_project_file_defaults ()
19
- __gateway_1_15_0_add_cognition_conversation_file_defaults ()
20
- __gateway_1_15_0_remove_cognition_step_type_relevance ()
21
- return True
22
-
23
-
24
- def __gateway_1_15_0_add_cognition_project_file_defaults () -> bool :
25
- query = """
26
- UPDATE cognition.project
27
- SET max_file_size_mb = 3,
28
- allow_file_upload = FALSE
29
- WHERE max_file_size_mb IS NULL
30
- """
31
- general .execute (query )
32
- general .commit ()
33
- return True
34
-
35
-
36
- def __gateway_1_15_0_add_cognition_conversation_file_defaults () -> bool :
37
- query = """
38
- UPDATE cognition.conversation
39
- SET has_tmp_files = FALSE,
40
- archived = FALSE
41
- WHERE has_tmp_files IS NULL
42
- """
43
- general .execute (query )
44
- general .commit ()
45
- return True
46
-
47
-
48
- def __gateway_1_15_0_remove_cognition_step_type_relevance () -> bool :
49
- query = """
50
- DELETE FROM cognition.strategy_step WHERE step_type = 'RELEVANCE'
51
- """
52
- general .execute (query )
53
- general .commit ()
15
+ # Note: A previous version had the previous update listed as v1.15.
16
+ # That was false, the updates already ran through. This is now for the actual 1.15 release
54
17
return True
55
18
56
19
@@ -60,6 +23,9 @@ def gateway_1_14_0() -> bool:
60
23
# ensured that these updates are executed at the correct time
61
24
gateway_1_14_0_add_cognition_project_state ()
62
25
gateway_1_14_0_add_cognition_strategy_complexity ()
26
+ __gateway_1_14_0_add_cognition_project_file_defaults ()
27
+ __gateway_1_14_0_add_cognition_conversation_file_defaults ()
28
+ __gateway_1_14_0_remove_cognition_step_type_relevance ()
63
29
return True
64
30
65
31
@@ -94,6 +60,39 @@ def gateway_1_14_0_add_cognition_strategy_complexity() -> bool:
94
60
return True
95
61
96
62
63
+ def __gateway_1_14_0_add_cognition_project_file_defaults () -> bool :
64
+ query = """
65
+ UPDATE cognition.project
66
+ SET max_file_size_mb = 3,
67
+ allow_file_upload = FALSE
68
+ WHERE max_file_size_mb IS NULL
69
+ """
70
+ general .execute (query )
71
+ general .commit ()
72
+ return True
73
+
74
+
75
+ def __gateway_1_14_0_add_cognition_conversation_file_defaults () -> bool :
76
+ query = """
77
+ UPDATE cognition.conversation
78
+ SET has_tmp_files = FALSE,
79
+ archived = FALSE
80
+ WHERE has_tmp_files IS NULL
81
+ """
82
+ general .execute (query )
83
+ general .commit ()
84
+ return True
85
+
86
+
87
+ def __gateway_1_14_0_remove_cognition_step_type_relevance () -> bool :
88
+ query = """
89
+ DELETE FROM cognition.strategy_step WHERE step_type = 'RELEVANCE'
90
+ """
91
+ general .execute (query )
92
+ general .commit ()
93
+ return True
94
+
95
+
97
96
def gateway_1_10_1 () -> bool :
98
97
__gateway_1_10_1_add_additional_embedding_information ()
99
98
return True
0 commit comments