Set parent of collection when migrating.