Skip to content

Commit

Permalink
Truncate knowledge_model_cache table
Browse files Browse the repository at this point in the history
  • Loading branch information
vknaisl committed Aug 22, 2024
1 parent 598e490 commit e993c52
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ migrate dbPool = do
changeColumnTypeFromJsonToJsonb dbPool
replaceFunctionGetBranchStateWithJsonb dbPool
dropBookReferenceTable dbPool
truncateKnowledgeModelTable dbPool

changeColumnTypeFromJsonToJsonb dbPool = do
let sql =
Expand Down Expand Up @@ -89,3 +90,9 @@ dropBookReferenceTable dbPool = do
let action conn = execute_ conn sql
liftIO $ withResource dbPool action
return Nothing

truncateKnowledgeModelTable dbPool = do
let sql = "TRUNCATE knowledge_model_cache"
let action conn = execute_ conn sql
liftIO $ withResource dbPool action
return Nothing

0 comments on commit e993c52

Please sign in to comment.