-- 生产退料单新增生产线字段
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_MQBENTRY' AND KSQL_COL_NAME IN ('FPRODUCTLINE'))
ALTER TABLE T_IM_MDC_MQBENTRY ADD (FPRODUCTLINE BIGINT DEFAULT 0 NOT NULL);