rewrote sd deals migration