Only stash local changes when running a migration.