Seems very similar to `getUniqueConstraintDeclarationSQL`