Commit f88b3384 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

when removing duplicates leave one copy

parent 6f719346
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment