-- Add domain reference columns to handovers table
-- domain_no: BC domain identifier (e.g. DNS00001)
-- domain_url: domain URL snapshot at creation time

ALTER TABLE helpdesk_handovers ADD COLUMN IF NOT EXISTS domain_no VARCHAR(30) NOT NULL DEFAULT '' AFTER product_code;
ALTER TABLE helpdesk_handovers ADD COLUMN IF NOT EXISTS domain_url VARCHAR(255) NOT NULL DEFAULT '' AFTER domain_no;
