Fix PTR migrations

**This pull request recreates the initial PTR migration. You *will* lose all your PTR data.**

This seems to be the best way to fix this. Everything else I tried had horrible unintended consequences.

---

- [x] Tests pass
- [x] Maintain migration works