/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\FA_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_FA_FUTURE_CHG_FIN_REL', 'T_FA_FUTURE_CHG_FIN_REL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_FUTURE_CHG') CREATE INDEX IDX_FA_FUTURE_CHG ON T_FA_FUTURE_CHG_FIN_REL ( FORGID ,FDEPREUSEID ,FCHGDATEPERIODID ,FNUMBER );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_FUTURE_CHG_NUM') CREATE INDEX IDX_FA_FUTURE_CHG_NUM ON T_FA_FUTURE_CHG_FIN_REL ( FNUMBER );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_FUTURE_CHG_CHGBILLID') CREATE INDEX IDX_FA_FUTURE_CHG_CHGBILLID ON T_FA_FUTURE_CHG_FIN_REL ( FCHANGEBILLID );



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\FA_constraint.sql **/
