-- Remove the NULL row left in __EFMigrationsHistory DELETE FROM [__EFMigrationsHistory] WHERE [MigrationId] IS NULL; -- Verify the result SELECT [MigrationId], [ProductVersion] FROM [__EFMigrationsHistory];