Fixed #23359 -- Added a separate command to list migrations and show the migration plan

Thanks to Gabe Jackson, Marc Tamlyn for their input and ideas.