Skip to content

Commit

Permalink
chore: Added disable_fk file for Embedding metadata table changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tazarov committed May 1, 2024
1 parent 0a2f745 commit d1dab84
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Empty file.
5 changes: 0 additions & 5 deletions chromadb/migrations/metadb/00006-em-fk.sqlite.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
-- Disable foreign key constraints to us to update the segments table
PRAGMA foreign_keys = OFF;

CREATE TABLE embedding_metadata_temp (
id INTEGER REFERENCES embeddings(id) ON DELETE CASCADE NOT NULL,
key TEXT NOT NULL,
Expand All @@ -18,5 +15,3 @@ FROM embedding_metadata;
DROP TABLE embedding_metadata;

ALTER TABLE embedding_metadata_temp RENAME TO embedding_metadata;

PRAGMA foreign_keys = ON;

0 comments on commit d1dab84

Please sign in to comment.