/**Begin D:\PDM\PDM_UPGRADE\pdm1\IFM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_IFM_INTOBJECT_DEPINT_E', 'T_IFM_INTOBJECT_DEPINT_E', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_IFM_INTOBJECT_OVERINT_E', 'T_IFM_INTOBJECT_OVERINT_E', 'FENTRYID', '1';

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

  EXEC P_ALTERPK 'PK_T_IFM_BIZDEALBILL_DEPOSIT_L', 'T_IFM_BIZDEALBILL_DEPOSIT_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_IFM_BIZDEALBILL_DEPOSIT', 'T_IFM_BIZDEALBILL_DEPOSIT', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_T_IFM_BIZDEALBILL_ENTRY', 'T_IFM_BIZDEALBILL_ENTRY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_IFM_BIZDEALBILL_DEPOSIT_E', 'T_IFM_BIZDEALBILL_DEPOSIT_E', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'T_IFM_BIZDEALBILL_DPT_E') CREATE INDEX T_IFM_BIZDEALBILL_DPT_E ON T_IFM_BIZDEALBILL_DEPOSIT_E ( FDEALDATE );




/**End D:\PDM\PDM_UPGRADE\pdm1\IFM_constraint.sql **/
