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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_INV_TM_SCHEMEID') CREATE INDEX IDX_FA_INV_TM_SCHEMEID ON T_FA_INV_TASK_MERGE ( FINVENTSCHEMEID );


 EXEC P_ALTERPK 'PK_T_FA_INV_TM_ENTRY', 'T_FA_INV_TM_ENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_INV_TM_ENTRY_TASKID') CREATE INDEX IDX_FA_INV_TM_ENTRY_TASKID ON T_FA_INV_TM_ENTRY ( FID ,FINVENTORYTASKID );



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