Fixed #22564 -- Prevented unneeded bytestrings in migrations