From 31fc22ce9de4626b8f9dd24b2105dd6cc0321948 Mon Sep 17 00:00:00 2001 From: Yiorgis Gozadinos Date: Fri, 24 Apr 2026 15:57:07 +0300 Subject: [PATCH] List tables consistently --- haiku_rag_slim/haiku/rag/store/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haiku_rag_slim/haiku/rag/store/engine.py b/haiku_rag_slim/haiku/rag/store/engine.py index 9a1569ed..55a328f7 100644 --- a/haiku_rag_slim/haiku/rag/store/engine.py +++ b/haiku_rag_slim/haiku/rag/store/engine.py @@ -590,7 +590,7 @@ class Store: # catching-and-swallowing drop_table's errors — a catch-all would # hide real failures (permissions, storage-backend errors) and then # the subsequent create_table would fail confusingly. - if "chunks" in await self.db.table_names(): + if "chunks" in (await self.db.list_tables()).tables: await self.db.drop_table("chunks") # Update the ChunkRecord model with new vector dimension