/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\IM_constraint.sql **/
 EXEC P_ALTERPK 'PK_IM_MDC_OMMATRLWRFENTRY', 'T_IM_MDC_OMMATRLWRFENTRY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_IM_MDC_OMMATRLWRFRECORD', 'T_IM_MDC_OMMATRLWRFRECORD', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_IM_MDC_OMMATRL_FWNUM') CREATE INDEX IDX_T_IM_MDC_OMMATRL_FWNUM ON T_IM_MDC_OMMATRLWRFRECORD ( FWFNUMBER );



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