Skip to content

Commit

Permalink
AZB-84: Fix SQL query to delete entries from keywords_commits
Browse files Browse the repository at this point in the history
  • Loading branch information
Paula Schwalm authored and CybotTM committed Dec 24, 2021
1 parent 4b22084 commit 0dc9234
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions data/migrations/001-duplicate.sql
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,5 @@ SELECT c_hash FROM (
SELECT c_hash FROM commits WHERE c_highest_branch = 'develop') t3)
AND t1.c_highest_branch != 'develop';

DELETE keywords_commits, keywords FROM keywords_commits
INNER JOIN keywords
ON keywords_commits.k_id = keywords.k_id
WHERE c_id NOT IN ( SELECT c_id FROM commits)
DELETE keywords_commits FROM keywords_commits
WHERE keywords_commits.c_id NOT IN ( SELECT c_id FROM commits);

0 comments on commit 0dc9234

Please sign in to comment.