fix pg migration