Fixed #22265 -- Clarfied consistent behavior of migrations.

Thanks aruseni for the report.