Add missing unique indices