- πΊπΈUnited States alison
Wow, I was so so so so confused as to why four content types' field groups had migrations and no others! (because, Features were maintained for a while after this site was built but not forever, so there are content types and stuff with outdated or zero features)
Thank you everyone on this thread for sharing, and thank you @kevinquillen for the solution share! -- I haven't tried that part out yet, we're in a discovery phase, but I'm adding this to my notes for when we get to implementation.
- πΊπΈUnited States kevinquillen
I've used the above trick a few times since then, YMMV.
- πΊπΈUnited States alison
@kevinquillen What's the reason for putting the features modules into the Drupal 9 site codebase? I'm missing where/how that part fits in.
- πΊπΈUnited States kevinquillen
They only exist so PHP can read the definitions of them in, in order to create the database records needed for the migration to pick them up.
- πΊπΈUnited States alison
Thank you! -- in case it helps anyone else who stops by this thread, my process for using the generated migrations was (and idk if this is best / correct, but it ended up working for me):
TL;DR: Run the field group migrations after field, field_instance, and field_instance_widget_settings migrations.
More specifically, this was my order of things:
- Run some migrations that tend to be dependencies of node/content migrations:
- upgrade_d7_user_role
- upgrade_d7_filter_format
- upgrade_d7_node_type
- upgrade_d7_user
- upgrade_d7_field
- upgrade_d7_view_modes
- upgrade_d7_taxonomy_vocabulary
- (then specific taxonomy/vocab migrations)
- Then...
- upgrade_d7_field_instance
- upgrade_d7_field_instance_widget_settings
- Then, "field group" migrations, i.e. upgrade_d7_field_group_node_news
- P.S. It also worked when I ran the field group migrations before the field instance widget settings migrations (accidentally, but it worked).
- Run some migrations that tend to be dependencies of node/content migrations:
- πΊπΈUnited States alison
I came across a couple other "site building things" that don't migrate smoothly / out-of-the box due to not being in the source site database when they're in Features (image styles, views), and posted about it here:
https://www.drupal.org/forum/support/upgrading-drupal/2024-01-24/upgradi... βMainly, I'm just sharing in case it's helpful to others, but if anyone's run into other "site building things" that behave like that, I hope you'll comment on the Forum thread!