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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_RECALCULATE') CREATE INDEX IDX_FA_RECALCULATE ON T_FA_RECALCULATE ( FORGID ,FDEPREUSEID );


 EXEC P_ALTERPK 'PK_T_FA_RECALCULATE_ENTRY', 'T_FA_RECALCULATE_ENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_RECALCULATE_ENTRY') CREATE INDEX IDX_FA_RECALCULATE_ENTRY ON T_FA_RECALCULATE_ENTRY ( FID ,FREALCARDID );


EXEC p_DropIdx 'IDX_FA_MATERTOASSET', 'T_FA_MATERTOASSET';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_MATERTOASSET') CREATE INDEX IDX_FA_MATERTOASSET ON T_FA_MATERTOASSET ( FDEPREUSEID );


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