fix: batch entity migrations (#2187)