Skip to content

Commit

Permalink
Revision index should only exist for non-deleted revisions (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm authored Nov 25, 2024
1 parent c84f0ab commit dbadf44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DROP INDEX rfd_revision_commit_sha_idx;
CREATE UNIQUE INDEX rfd_revision_commit_sha_idx ON rfd_revision (rfd_id, commit_sha);
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DROP INDEX rfd_revision_commit_sha_idx;
CREATE UNIQUE INDEX rfd_revision_commit_sha_idx ON rfd_revision (rfd_id, commit_sha) WHERE deleted_at IS NULL;

0 comments on commit dbadf44

Please sign in to comment.