We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6854ee0 commit 5bf1a4bCopy full SHA for 5bf1a4b
langchain_postgres/v2/engine.py
@@ -384,7 +384,7 @@ async def _adrop_table(
384
schema_name: str = "public",
385
) -> None:
386
"""Drop the vector store table"""
387
- query = f'DROP TABLE "{schema_name}"."{table_name}";'
+ query = f'DROP TABLE IF EXISTS "{schema_name}"."{table_name}";'
388
async with self._pool.connect() as conn:
389
await conn.execute(text(query))
390
await conn.commit()
0 commit comments