Support deletion of documents when a connector is deleted (#271)

This commit is contained in:
Chris Weaver
2023-08-09 00:53:42 -07:00
committed by GitHub
parent b6dec6dcdb
commit 89f71ac335
49 changed files with 1961 additions and 390 deletions

View File

@@ -29,6 +29,9 @@ def wipe_all_rows(database: str) -> None:
table_names = cur.fetchall()
# have to delete from these first to not run into psycopg2.errors.ForeignKeyViolation
cur.execute(f"DELETE FROM chunk")
cur.execute(f"DELETE FROM document_by_connector_credential_pair")
cur.execute(f"DELETE FROM document")
cur.execute(f"DELETE FROM connector_credential_pair")
cur.execute(f"DELETE FROM index_attempt")
conn.commit()