From f88b3384888f7534d8858d6acfecd2c66a809fb4 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Wed, 18 Sep 2019 17:52:58 +0200 Subject: [PATCH] when removing duplicates leave one copy --- .../14.0.0~alpha.0/V14.0.0.20190618__new_permission_model.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/persist/src/main/resources/db/migration/14.0.0~alpha.0/V14.0.0.20190618__new_permission_model.sql b/persist/src/main/resources/db/migration/14.0.0~alpha.0/V14.0.0.20190618__new_permission_model.sql index 0065ef3b62..fc661c0e05 100644 --- a/persist/src/main/resources/db/migration/14.0.0~alpha.0/V14.0.0.20190618__new_permission_model.sql +++ b/persist/src/main/resources/db/migration/14.0.0~alpha.0/V14.0.0.20190618__new_permission_model.sql @@ -90,7 +90,7 @@ delete from privilege_table where type = 'VIEW_PROJECT' or type = 'MANAGE_PLUGINS'; delete from user_privilege_map_table t1 using user_privilege_map_table t2 -where t1.CTID != t2.CTID +where t1.CTID < t2.CTID and t1.user_id = t2.user_id and t1.privilege_id = t2.privilege_id; -- GitLab