/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\IM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_IM_OSWFRECORD', 'T_IM_OSWFRECORD', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_T_IM_OSWFRECORDENTRY', 'T_IM_OSWFRECORDENTRY', 'FENTRYID', '1';

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



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