ALTER table wms_storage MODIFY column header_no VARCHAR(128) comment '上游单据单号'; ALTER table wms_storage MODIFY column wh_id BIGINT(20) null comment '仓库 Id,对应 wms_wh 表中的Id'; ALTER table wms_storage_mat MODIFY column wh_id BIGINT(20) null comment '仓库 Id,对应 wms_wh 表中的Id'; ALTER table wms_storage_mat MODIFY column rg_id BIGINT(20) null comment '库区 Id,对应 wms_rg 表中的Id'; ALTER table wms_storage_mat MODIFY column pn_id BIGINT(20) null comment '库区 Id,对应 wms_rg 表中的Id'; ALTER table wms_storage_log MODIFY column wh_id BIGINT(20) null comment '仓库 Id,对应 wms_wh 表中的Id'; ALTER table wms_storage_log MODIFY column rg_id BIGINT(20) null comment '库区 Id,对应 wms_rg 表中的Id'; ALTER table wms_storage_log MODIFY column pn_id BIGINT(20) null comment '库区 Id,对应 wms_rg 表中的Id'; UPDATE base_material set virtual_part = 'N'; ALTER TABLE base_material MODIFY COLUMN virtual_part CHAR ( 1 ) NOT NULL DEFAULT 'N' COMMENT '虚拟物料标识,只能填写Y和N,Y表示虚拟物料,N表示反之';