Hi, I am currently migrating database from MySQL to PostgreSQL. I have already migrated some of the data but I can't pull the data for my phonenumber field.
I have a model: class BasePerson(TimeStampedModel): phone_number = PhoneNumberField(max_length=50, verbose_name=_(u'phone number'), blank=True) The data for phone number that I am migrating doesn't have country code. I would like to know if I can control this in SQL? I want to determine first if the number has country code in it, if it doesn't then I will add the country code on the number before INSERTING it to the destination database. I am using psycopg2 for my script. Any suggestion will be highly appreciated. Thanks, J -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAA6wQL%2Bf%3DkBHowTs-J3%3DQxwR2UFMZq1Jk3d-%2BWMnDPsK1rr%3D0A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.