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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_IFM_CURRENTINTBILL_BANK') CREATE INDEX IDX_IFM_CURRENTINTBILL_BANK ON T_IFM_CURRENTINTBILL_BANK ( FBILLNO );


 EXEC P_ALTERPK 'PK_T_IFM_BANKINTBIL_ENTRY', 'T_IFM_BANKINTBIL_ENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_IFM_BANKINTBIL_ENTRY') CREATE INDEX IDX_IFM_BANKINTBIL_ENTRY ON T_IFM_BANKINTBIL_ENTRY ( FID );


 EXEC P_ALTERPK 'PK_T_IFM_INTBILL_BATCH_BANK', 'T_IFM_INTBILL_BATCH_BANK', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_IFM_INTBILL_BATCH_BANK') CREATE INDEX IDX_IFM_INTBILL_BATCH_BANK ON T_IFM_INTBILL_BATCH_BANK ( FBILLNO );


 EXEC P_ALTERPK 'PK_T_IFM_INTBILL_BATCH_ENTRY', 'T_IFM_INTBILL_BATCH_ENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_IFM_BATCHINT_BANK_ENTRY') CREATE INDEX IDX_IFM_BATCHINT_BANK_ENTRY ON T_IFM_INTBILL_BATCH_ENTRY ( FID );


 EXEC P_ALTERPK 'PK_IFM_INTBILL_BATCH_BANK_L', 'T_IFM_INTBILL_BATCH_BANK_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_IFM_INTBILL_BATCH_BANK_L') CREATE INDEX IDX_IFM_INTBILL_BATCH_BANK_L ON T_IFM_INTBILL_BATCH_BANK_L ( FID ,FLOCALEID );



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