convert migration to base