/**Begin D:\PDM_UPGRADE\PDM1\IFM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_IFM_DEDUCTION_C', 'T_IFM_DEDUCTION_C', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_IFM_DEDUCTION_C_CROSS') CREATE INDEX IDX_IFM_DEDUCTION_C_CROSS ON T_IFM_DEDUCTION_C ( FISCROSSPAY ,FCROSSTRANTYPEID );


 EXEC P_ALTERPK 'PK_T_IFM_PAYACCEPTANCE_C', 'T_IFM_PAYACCEPTANCE_C', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_IFM_PAYACCEPTANCE_C_CROSS') CREATE INDEX IDX_IFM_PAYACCEPTANCE_C_CROSS ON T_IFM_PAYACCEPTANCE_C ( FISCROSSPAY ,FCROSSTRANTYPEID );


 EXEC P_ALTERPK 'PK_T_IFM_TRANSHANDLE_C', 'T_IFM_TRANSHANDLE_C', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_IFM_TRANSHANDLE_C_CROSS') CREATE INDEX IDX_IFM_TRANSHANDLE_C_CROSS ON T_IFM_TRANSHANDLE_C ( FISCROSSPAY ,FCROSSTRANTYPEID );



/**End D:\PDM_UPGRADE\PDM1\IFM_constraint.sql **/
