[1.7.x] Swapped placeholders in [sql]migrate command error

Backport of b67e9ed8c9 from master.