Put back migration to a clean state

This is for historic reasons in case someone is running
migrations 1-9 for the first time.