Add back migration code that got accidentally removed.

There isn't an obviously fantastic place to put this, so leaving it in "primary".

Also fix typo in README migration commands.