Try to fix incorrect constraint migrations