[1.7.x] Fixed #22496: Data migrations get transactions again!