Skip to content

Commit

Permalink
Merge pull request #760 from amvanbaren/bugfix/unique-review
Browse files Browse the repository at this point in the history
remove unique review constraint
  • Loading branch information
amvanbaren authored Jun 20, 2023
2 parents cbf247e + df3738e commit 436d0e3
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ WHERE u.id = tu.other_id;
DROP TABLE tmp_user_data;
ALTER TABLE user_data ADD CONSTRAINT unique_user_data UNIQUE (provider, login_name);

-- unique extension review
DELETE FROM extension_review r
USING extension_review ur
WHERE r.id > ur.id
AND r.extension_id = ur.extension_id
AND r.user_id = ur.user_id;

ALTER TABLE extension_review ADD CONSTRAINT unique_extension_review UNIQUE (extension_id, user_id);

-- unique namespace membership
DELETE FROM namespace_membership nm
USING namespace_membership onm
Expand Down

0 comments on commit 436d0e3

Please sign in to comment.