ALTER TABLE gateway_task_events
  ADD COLUMN IF NOT EXISTS platform_id uuid;

ALTER TABLE gateway_task_attempts
  ADD COLUMN IF NOT EXISTS status_code integer;

ALTER TABLE gateway_task_callback_outbox
  ADD COLUMN IF NOT EXISTS locked_by text,
  ADD COLUMN IF NOT EXISTS lock_token uuid,
  ADD COLUMN IF NOT EXISTS locked_at timestamptz,
  ADD COLUMN IF NOT EXISTS failed_at timestamptz;
