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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_IM_USERPARAM' AND KSQL_INDNAME = 'IDX_IM_USERPARAM_USER_TYPE') CREATE INDEX IDX_IM_USERPARAM_USER_TYPE ON T_IM_USERPARAM ( FUSERID ,FTYPE );



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