-- Durable BEE order history. Legacy rows remain readable with a NULL source ID.
ALTER TABLE `bee_orders`
    ADD COLUMN IF NOT EXISTS `source_order_id` VARCHAR(64) NULL AFTER `id`,
    ADD UNIQUE INDEX IF NOT EXISTS `uq_bee_orders_source_order_id` (`source_order_id`);
