def make_ccdVisitId(visit, raft, sensor):
    """
    Create the ccdVisitId to be used in the CcdVisit table.

    Parameters
    ----------
    visit : int
         visitId of the desired visit.
    raft : str
         Identifier of the raft location in the LSST focal plane,
         e.g., 'R22'.
    sensor : str
         Identifier of the sensor location in a raft, e.g., 'S11'.

    Returns
    -------
    int
        An integer that uniquely identifies the visit-raft-sensor
        combination.
    """
    # There are around 2.5 million visits in the 10 year survey, so 7
    # digits should suffice for the visit part.  Prepend the RRSS
    # combination to that and return as an int.
    ccdVisitId = int(raft[:3:2] + sensor[:3:2] + "%07i" % visit)
    return ccdVisitId