Migration: correctly migrate group type