Fix serialize migration. Fixes #7734
Merge pull request #7738 from dblessing/serialize_migration_fix

Fix serialize migration