[1.7.x] Fixed #22940 -- Added missing string iterpolation parameters in migrations.writer error.