Skip to content

Commit 99f55a2

Browse files
Release Updates (#63)
* Adds removal of old step type * Submodules merge --------- Co-authored-by: Lina <lina.lumburovska@kern.ai>
1 parent 79fa6c5 commit 99f55a2

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

upgrade_logic/business_objects/gateway.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def gateway_1_15_0() -> bool:
1717
# ensured that these updates are executed at the correct time
1818
__gateway_1_15_0_add_cognition_project_file_defaults()
1919
__gateway_1_15_0_add_cognition_conversation_file_defaults()
20+
__gateway_1_15_0_remove_cognition_step_type_relevance()
2021
return True
2122

2223

@@ -44,6 +45,15 @@ def __gateway_1_15_0_add_cognition_conversation_file_defaults() -> bool:
4445
return True
4546

4647

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()
54+
return True
55+
56+
4757
def gateway_1_14_0() -> bool:
4858
# here, we update data for cognition using the gateway pattern
4959
# as the corresponding database updates (alembic) are managed using the refinery gateway it is

0 commit comments

Comments
 (0)