Migration: handle empty identifiers