[fix] Correcty select SQL file for upgrade