fix up migrations so they work retrospectively