FIX wrong SQL in migration 3.6 -> 3.7