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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MAL_GCATEGORY_FSELFID') CREATE INDEX IDX_MAL_GCATEGORY_FSELFID ON T_MAL_GOODSCATEGORY ( FSELFCATOGRYID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MAL_GCATEGORY_FECID') CREATE INDEX IDX_MAL_GCATEGORY_FECID ON T_MAL_GOODSCATEGORY ( FECCATOGRYID );



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