List tables consistently
This commit is contained in:
parent
cd4224a727
commit
31fc22ce9d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue