/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\MAL_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_MAL_GOODS_PRICELOG', 'T_MAL_GOODS_PRICELOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MAL_PRICELOG_FGOODS_TIME') CREATE INDEX IDX_MAL_PRICELOG_FGOODS_TIME ON T_MAL_GOODS_PRICELOG ( FMALLGOODSID ,FMODIFYTIME  DESC );



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