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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_IM_HISTORYSEARCH_FCRTIME') CREATE INDEX IDX_IM_HISTORYSEARCH_FCRTIME ON T_IM_HISTORYSEARCH ( FCREATETIME );



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