IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33746


Ignore:
Timestamp:
Apr 10, 2012, 1:38:39 PM (14 years ago)
Author:
rhenders
Message:

added unique key on Object table to protect against duplicates from DVO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/objectbatch.py

    r33715 r33746  
    7878    def alterPspsTables(self):
    7979
    80         self.logger.debug("Altering PSPS tables")
     80        self.scratchDb.makeColumnUnique("Object", "objID")
     81
    8182        return True
    8283
     
    157158
    158159        self.logger.infoPair("Inserting objects from", "cpt")
    159         sql = "INSERT INTO Object (\
     160        sql = "INSERT IGNORE INTO Object (\
    160161               objID \
    161162               ,ippObjID \
Note: See TracChangeset for help on using the changeset viewer.