Only run migration when migration button is clicked.