Introduced in #22558 due (apparently) to a breaking change in efcore e.g. aspnetcore-ci build 20200605.41. The warning did not occur in the previous build of master (20200605.38) but did in the CI validation of #22558 (20200605.33).
Part of #22240
Duplicate of #22610
Something missing, checking
@smitpatel yeah, the rolling build of your fix for #22610 (#22612) already hit this warning here.
Not sure I understand though. Why not rebuild the migrations❔
3 files were missed that for migration file. Added pragma disable in those in #22631
Not sure I understand though. Why not rebuild the migrations❔
@ajcvickers @AndriySvyryd @bricelam
@smitpatel Lots of customers will have Identity migrations already in their project. Regenerating migrations here won't help them. I don't think we want them all to be getting warnings that they then have to suppress/fix. That's why we need to discuss this breaking change at a higher-level--i.e. should we just revert it.
I don't think we want them all to be getting warnings that they then have to suppress/fix.
Only migrations generated in 1.x releases and API breaks to the API which was available back then will have to react. Post 1.x everything works fine. Let's discuss in team meeting.
@smitpatel Got it. So this is only because this sample hasn't been updated since the 1.0 rc3 release. We should double check that migrations shipped for 2.x and 3.x don't have these issues. (It is a manual step to update these migrations, so just because we put the code to ignore obsoletes in a 2.x release doesn't mean the Identity migrations necessarily picked up that change.)
I was testing out upgrade path since this repo had warnings coming out of migrations.
HasNameHasDatabaseName, build passed without warning.We can do more thorough testing with older snapshot. @bricelam would know if we have testing in our repo for such scenarios. I think important learning from this would be, if we are going to support all old migrations then we can obsolete model building APIs but cannot remove them ever.
@smitpatel Specifically, I am concerned about the pre-generated migrations that are added to your project from the template when you create a new ASP.NET Core app and choose Individual Auth. The 3.1 templates must include migrations that don't have this issue for this break to be acceptable. (I'm pretty sure this is true.) I would be even more comfortable if the 2.1 templates also work.