Index: trunk/ippToPsps/jython/diffbatch.py
===================================================================
--- trunk/ippToPsps/jython/diffbatch.py	(revision 39015)
+++ trunk/ippToPsps/jython/diffbatch.py	(revision 39016)
@@ -533,5 +533,5 @@
         self.logger.debug("Altering PSPS tables")
         self.logger.debug("Creating indexes on PSPS tables")
-        self.scratchDb.makeColumnUnique("DiffDetection", "diffObjID")
+        self.scratchDb.makeColumnUnique("DiffDetection", "diffDetID")
         self.scratchDb.makeColumnPrimaryKey("DiffDetection", "ippDetectID")
 
