fix migrations retrospectively