Problem/Motivation
I feal totally puzzled.
I have two fields in six content types and user on D7 that are build with standard "textfield" and contain phone numbers. I'd like to convert them to "telephone" type during D7 to D10 migration to use the new field formater for tel fields. Is there any easy way or has someone done this and may share code with me, please? I guess it can only be easy as it is text to text migration, but I do not get the hand around any code example around.
I have already read more than 20 documentation pages about migrations and I do not understand what I really need to do as they are full of special cases. Any help is highly appreciated.
Comments
Comment #2
marc.bauComment #3
mdsohaib4242 commentedA more efficient approach would be to proceed with the migration from Drupal 7 to Drupal 10 as it is. Once the migration is complete, you can create a new "telephone" field in Drupal 10 and then transfer the data from the old field to the new one.
For example, if your content type is "article," and your existing field is `field_old` while the new telephone field is `field_new`, you can use a script to copy all the data.
Comment #4
quietone commented@marc.bau, I hope you resolved this. Changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to the Core change policies.
There are several support options listed on our support page (Community > Support at the top of Drupal.org) and there is Drupal Slack. You may get better replies in one of those places. I suggest using the #migration channel in Drupal Slack.