Skip to content
Snippets Groups Projects
Commit f88b3384 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

when removing duplicates leave one copy

parent 6f719346
No related branches found
No related tags found
1 merge request!947Resolve "Privileges migration for USERS"
...@@ -90,7 +90,7 @@ delete from privilege_table where type = 'VIEW_PROJECT' ...@@ -90,7 +90,7 @@ delete from privilege_table where type = 'VIEW_PROJECT'
or type = 'MANAGE_PLUGINS'; or type = 'MANAGE_PLUGINS';
delete from user_privilege_map_table t1 using user_privilege_map_table t2 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.user_id = t2.user_id
and t1.privilege_id = t2.privilege_id; and t1.privilege_id = t2.privilege_id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment