-- store extra audit info
ALTER TABLE medreport.medipost_actions ADD COLUMN medipost_private_message_id TEXT;
ALTER TABLE medreport.medipost_actions ADD COLUMN medipost_external_order_id TEXT;

-- store status info for frontend texts
ALTER TABLE medreport.analysis_response_elements ADD COLUMN status TEXT;

-- cancelled orders
ALTER TABLE medreport.analysis_response_elements ALTER COLUMN response_time DROP NOT NULL;
ALTER TABLE medreport.analysis_response_elements ALTER COLUMN response_value DROP NOT NULL;
ALTER TABLE medreport.analysis_response_elements ALTER COLUMN comment DROP NOT NULL;
