Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
D6 and D7 sites will be migrated to D8 via Migrate API. Would be nice to have a migration template that would migrate core files/file entities to media.
Optionally we could also provide migration for Scald atom entities.
Proposed resolution
Create default migration templates. Add test coverage.
Comments
Comment #1
BerdirDo we need any special handling here?
Based on how migrate works, I'd expect more that we have to provide sources and processors to convert the data to the right format, but there's not really something special about the destination at the moment?
Comment #2
slashrsm CreditAttribution: slashrsm commentedComment #3
stBorchertIt is very easy, indeed. You do not need an additional migration, Entity does the job.
In my migrate.migration.{migration_id}.yml I simply added this processing and everything works :)
Comment #4
slashrsm CreditAttribution: slashrsm at MD Systems GmbH for Acquia commentedRe-purposing the ticket.
Comment #5
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer commentedRelated: I wrote a Scald Atom source for a custom migration project, so I contributed it over at #2772129: Scald Atom migrate source.
Comment #6
Gábor HojtsyComment #7
manu manu@stBorchert, would you mind telling witch Migrate source plugin did you used?
Comment #8
stBorchert@manu manu: We used a custom source plugin for Yaml files (https://www.drupal.org/sandbox/stborchert/2808617).
Note that the source shouldn't matter here (as long as it provides the correct values ;) ).
Comment #9
manu manuThanks @stBorchert :-)
Comment #10
heddnLinking in #2906878: [Meta] Support for D7 -> D9 contrib migrate