Summary Generate provider-specific SQL covering the oldest target through the desired endpoint. History guards skip recorded migrations; schema drift still requires recovery. Start with dotnet ef migrations script 0 --idempotent --output migrations.sql