Fixed issue #8334: Creating unique index on permissions table fails during installation - patch by wehr