Adjusted rename_migration.sh to support update tokens.