Problem/Motivation
As a Drupal 7 user, I want to have my youtube fields migrated to media fields and the corresponding field values to media entities.
API changes
- New migration:
d7_youtube_fieldwhich migrates the field values to media entities. - New migrate source plugin:
youtubewhich provides the source field values. - An improved
media_internet_field_valuemigrate process plugin. - New field migration plugin:
youtubewhich changes Drupal 7 youtube fields to Drupal 9 media fields.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | Migrate_Youtube_field_from_D7_to_D9-3272705-5.patch | 81.42 KB | yash.rode |
Issue fork media_migration-3272705
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
yash.rode commentedComment #3
yash.rode commentedYoutube field to media migration.
Comment #5
yash.rode commentedComment #6
yash.rode commentedSource query changed->added orderBy() to get the same result on local as well as DGO.
Comment #7
huzooka#6 is perfect!
Thank you, @yash.rode!
Comment #9
huzooka...and I just noticed what's wrong:
We have to make sure that these youtube field migrations are executed after the other media from plain files and media from media migrations: because if
d7_youtube_fieldis executed before them, then we will have a media entity ID conflict!I won't revert the commit, but this should be addressed.
Comment #10
yash.rode commentedAdded migration dependencies to make sure youtube field migration is executed after the other media from plain files and media from media migrations are executed.
Comment #11
huzookaThe underlying issue (the assumption on source fid === destination mid) was addressed in #3281055: Media entity migrations shouldn't migrate file IDs to media IDs.
@yash.rode, thank you again!