/**Begin D:\PDM_UPGRADE\PDM1\PUR_constraint.sql **/
EXEC P_ALTERPK 'PK_T_PUR_SCDATAHANDLELOG', 'T_PUR_SCDATAHANDLELOG', 'FID', '1';

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_PUR_SDHL_FAILID') CREATE INDEX IDX_T_PUR_SDHL_FAILID ON T_PUR_SCDATAHANDLELOG ( FDATAHANDLEFAILID );

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_PUR_SDHL_FLOGAPPID') CREATE INDEX IDX_T_PUR_SDHL_FLOGAPPID ON T_PUR_SCDATAHANDLELOG ( FLOGAPPID );

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_PUR_SDHL_FOPDATE') CREATE INDEX IDX_T_PUR_SDHL_FOPDATE ON T_PUR_SCDATAHANDLELOG ( FOPDATE );
 
/**End D:\PDM_UPGRADE\PDM1\PUR_constraint.sql **/
