/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\PMS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_SM_SALSTAIRPRICEENTRY', 'T_SM_SALSTAIRPRICEENTRY', 'FDETAILID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SM_SALSTAIRPRICEENTRY') CREATE INDEX IDX_SM_SALSTAIRPRICEENTRY ON T_SM_SALSTAIRPRICEENTRY ( FENTRYID );



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