[ADDED] Upgrade script for config migration