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.
When I attempt to migrate a list_float field from d7 to d8, drush tells me
Attempt to create a field storage field_are_you_over_18 with no type. [error]
(/home/matslats/localhost/drupal-8.4.0-rc1/core/modules/field/src/Entity/FieldStorageConfig.php:252)
It seems to me that this mapping has been simply left out of Drupal\options\Plugin\migrate\field\d7\ListField definition, which should read
/**
* @MigrateField(
* id = "list",
* type_map = {
* "list_boolean" = "boolean",
* "list_integer" = "list_integer",
* "list_text" = "list_string",
* "list_float" = "list_float",
* },
* core = {7}
* )
*/
Comment | File | Size | Author |
---|---|---|---|
#11 | interdiff-2911288-5-11.txt | 3.84 KB | maxocub |
#11 | 2911288-11.patch | 14.16 KB | maxocub |
Comments
Comment #2
heddn@matslats want to add a patch for this? It shouldn't be that hard.
Comment #3
quietone CreditAttribution: quietone as a volunteer commentedAdding tags
Comment #5
maxocub CreditAttribution: maxocub as a volunteer commentedHere's a patch and a failing test.
Comment #7
heddnI'll try to look at this sometime soon.
Comment #8
heddnLooks like we have all 4 of the options now. See https://cgit.drupalcode.org/drupal/tree/modules/field/modules/list/list..... We've got tests! We've got fixes. The fixes look complete. IS is updated. We are good to go.
Comment #9
quietone CreditAttribution: quietone as a volunteer commentedComment #10
alexpottThis all looks pretty good to me but it seems strange to not add any data to field_data_field_float_list to actually migrate. Shouldn't we add a value to make sue that the migration happens as expected.
Comment #11
maxocub CreditAttribution: maxocub as a volunteer commentedThere you go!
Comment #12
heddnBack to RTBC.
Comment #13
alexpott@maxocub nice pie!
Credited @matslats for finding and creating the issue.
Comment #14
alexpottCommitted 43645ea and pushed to 8.6.x. Thanks!
Committed 6e4b850 and pushed to 8.5.x. Thanks!