Hi Guys,

I'm struggling to migrate weight field from D7 to D8. I already saw https://www.drupal.org/project/weight/issues/3007210.
But it didn't give any hint how to do the migration. The only thing was a patch and there is no any explanation if you can use process to do the migration.

I already create process class. But I noticed that the field is in separate table weight_weights so there no any way to use prepareRow or transform method because this is not an entity field.

So is there any solution to do the migration from D7 to D8 using for example process plugin ?

BR
Baher

Comments

Baher created an issue.

brooke_heaton’s picture

Chiming in here. Is there any documentation on how to perform the migration for D7 to D8?

jonathan_hunt’s picture

FWIW, with a weight field configured in D9, I added a process field mapping in my node migration yml like:

field_weight_new:
  -
    plugin: get
    source: field_weight_old

You'll need to tweak the field names to suit your context.

anybody’s picture

I agree, a migration path would be really handy here. Any maintainer plans?