fix(postgres): delete unique constraints (cherry picked from commit 8982e1aae3763984d39ac4778133ba09b12142c4)