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 0065ef3b620a4259d3869309ff1827a68dc5ada0..fc661c0e05e8a4baec8f24913ccb3e5729962cf4 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;