--liquibase formatted sql

--changeset [enson]:update_pick_execution_issue_add_columns_and_modify_status

-- 1. 添加新列 issueNo
ALTER TABLE pick_execution_issue
ADD COLUMN issue_category ENUM(
    'lot_issue',
    'resuggest_issue',
    'match_issue'
    
) NULL DEFAULT 'lot_issue' AFTER type;

ALTER TABLE pick_execution_issue
ADD COLUMN Do_pick_order_id INT NULL AFTER issue_category,
ADD COLUMN Jo_pick_order_id INT NULL AFTER Do_pick_order_id;

ALTER TABLE pick_execution_issue
DROP COLUMN type;
