Fixed #22300 -- Fixed crash in migrations when changing non-relational field to relational.