Fix get_sw_name import in migrations