Fix for [DEV-12092] migrate_permissions creates duplicate entries if ran more than once.
Fix for [DEV-12092] migrate_permissions creates duplicate entries if ran more than once.

jamesblunt/chorus,jamesblunt/chorus,jamesblunt/chorus,jamesblunt/chorus,prakash-alpine/chorus,prakash-alpine/chorus,jamesblunt/chorus,prakash-alpine/chorus,jamesblunt/chorus,jamesblunt/chorus,prakash-alpine/chorus,prakash-alpine/chorus