From df3738e56a763eb8e56a20f8ee2e3d5d096bf4d6 Mon Sep 17 00:00:00 2001 From: amvanbaren Date: Tue, 20 Jun 2023 21:36:45 +0300 Subject: [PATCH] remove unique review constraint --- .../db/migration/V1_39__Fix_Unique_Constraints.sql | 9 --------- 1 file changed, 9 deletions(-) diff --git a/server/src/main/resources/db/migration/V1_39__Fix_Unique_Constraints.sql b/server/src/main/resources/db/migration/V1_39__Fix_Unique_Constraints.sql index 171474fa8..3786e1d08 100644 --- a/server/src/main/resources/db/migration/V1_39__Fix_Unique_Constraints.sql +++ b/server/src/main/resources/db/migration/V1_39__Fix_Unique_Constraints.sql @@ -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