Prevent addition of duplicate roles and authorities

Description

To avoid repeats of issues like add a unique key on the security_roles arch_short_name + name columns, and the granted_authorities arch_short_name + name columns.

For existing duplicates, rename the names to <id of duplicate> + name, truncated to 255 characters

Environment

None

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Components

Fix versions

Priority

Minor
Configure