Changeset 33272 for trunk/ippToPsps
- Timestamp:
- Feb 15, 2012, 1:05:44 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/dvo.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/dvo.py
r33259 r33272 403 403 self.scratchDb.createIndex(cptTableName, "OBJ_ID") 404 404 405 self.logger.infoPair("Adding","PSPS objIDs") 406 # first try to add a column for PSPS_OBJ_ID. catch failure and continue 407 try: 408 sql = "ALTER TABLE " + cpmTableName + " ADD COLUMN (PSPS_OBJ_ID BIGINT)" 409 self.scratchDb.execute(sql) 410 except: 411 self.logger.infoPair("Already added PSPS_OBJ_ID column to", cpmTableName) 412 405 413 # shove PSPS objIDs from cpt table into measurement table 406 self.logger.infoPair("Adding","PSPS objIDs")407 sql = "ALTER TABLE "+cpmTableName+" ADD COLUMN (PSPS_OBJ_ID BIGINT)"408 self.scratchDb.execute(sql)409 414 sql = "UPDATE " + cpmTableName + " AS a, " + cptTableName + " AS b \ 410 415 SET a.PSPS_OBJ_ID = b.EXT_ID \
Note:
See TracChangeset
for help on using the changeset viewer.
