-- 化验明细添加槽号对应名称字段
ALTER TABLE MES_ASSAY_CONTENT_DETAIL ADD SLOT_NAME VARCHAR2(100) NULL;
COMMENT ON COLUMN MES_ASSAY_CONTENT_DETAIL.SLOT_NAME IS '槽名称';

-- 摸具申报添加字段
ALTER TABLE MES_MOLD_PLAN ADD STOCK_NUM NUMBER(8,0) NULL;
COMMENT ON COLUMN MES_MOLD_PLAN.STOCK_NUM IS '库存量';
ALTER TABLE MES_MOLD_PLAN ADD OCCUPY_NUM NUMBER(8,0) NULL;
COMMENT ON COLUMN MES_MOLD_PLAN.OCCUPY_NUM IS '占用量';
ALTER TABLE MES_MOLD_PLAN ADD LINK_ORDER_IDS VARCHAR2(255) NULL;
COMMENT ON COLUMN MES_MOLD_PLAN.LINK_ORDER_IDS IS 'LINK_ORDER_IDS';

-- 字段长度修改
ALTER TABLE MES_ASSAY_CONTENT MODIFY wc_id NUMBER(20,0);
ALTER TABLE MES_ASSAY_CONTENT MODIFY assay_man NUMBER(20,0);
ALTER TABLE MES_ASSAY_CONTENT MODIFY APPLY_ID NUMBER(20,0);
ALTER TABLE MES_ASSAY_CONTENT MODIFY APPLY_STATUS NUMBER(8,0) DEFAULT 0 ;
ALTER TABLE MES_ASSAY_CONTENT MODIFY IS_USED NUMBER(8,0);
ALTER TABLE MES_ASSAY_CONTENT_DETAIL MODIFY AC_ID NUMBER(20,0);
ALTER TABLE MES_MOLD_PLAN MODIFY ERP_ID NUMBER(20,0);
ALTER TABLE MES_MOLD_PLAN MODIFY YP_ID NUMBER(20,0);
ALTER TABLE MES_MOLD_PLAN MODIFY KEEPER NUMBER(20,0);
ALTER TABLE MES_MOLD_PLAN MODIFY RELEASER NUMBER(20,0);
ALTER TABLE MES_PLATE_GOODS_APPLY MODIFY BO_ID NUMBER(20,0);
ALTER TABLE MES_PLATE_GOODS_APPLY MODIFY BR_ID NUMBER(20,0);
ALTER TABLE MES_PLATE_GOODS_APPLY MODIFY AC_ID NUMBER(20,0);
ALTER TABLE MES_PLATE_GOODS_APPLY MODIFY PGR_ID NUMBER(20,0);
ALTER TABLE MES_PLATE_GOODS_APPLY MODIFY WC_ID NUMBER(20,0);
ALTER TABLE MES_PLATE_GOODS_RECORD MODIFY WC_ID NUMBER(20,0);
ALTER TABLE MES_PLATE_GOODS_RECORD MODIFY APPROVAL_STATUS NUMBER(20,0);
ALTER TABLE MES_PLATE_GOODS_RECORD MODIFY GOODS_BO_ID NUMBER(20,0);
ALTER TABLE MES_PLATE_GOODS_RECORD MODIFY COEFFICIENT_BO_ID NUMBER(20,0);
ALTER TABLE MES_PLATE_GOODS_RECORD_DETAIL MODIFY PGRD_ID NUMBER(20,0);

ALTER TABLE MES_PLATE_GOODS_RECORD ADD INVOLVING_RECORD_CODE VARCHAR2(255) NULL;
COMMENT ON COLUMN MES_PLATE_GOODS_RECORD.INVOLVING_RECORD_CODE IS '本次添加涉及单号';
ALTER TABLE MES_PLATE_GOODS_RECORD ADD DETAIL_ORDER_NUM NUMBER(8,0) NULL;
COMMENT ON COLUMN MES_PLATE_GOODS_RECORD.DETAIL_ORDER_NUM IS '本次关联订单数量';

ALTER TABLE MES_ASSAY_CONTENT_DETAIL ADD ADD_VAL NUMBER(20,10) NULL;
COMMENT ON COLUMN MES_ASSAY_CONTENT_DETAIL.ADD_VAL IS '添加量值';


