isolate migration scripts in migrations/v4-to-v5