/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BASE_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BD_MATERIALBGPARAM', 'T_BD_MATERIALBGPARAM', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BD_MATERIALBGPARAM' AND KSQL_INDNAME = 'IDX_T_BD_MATERIAL_FREFERENCES') CREATE INDEX IDX_T_BD_MATERIAL_FREFERENCES ON T_BD_MATERIALBGPARAM ( FREFERENCES );



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