Mike Dewhirst <mi...@dewhirst.com.au> writes:

> On 18/05/2021 3:18 pm, Mike Dewhirst wrote:
>> On 18/05/2021 3:14 pm, Pankaj Jangid wrote:
>>> I have an application from 3.1.x and in 3.2 we have to explicitly state
>>> this to make it compatible i.e. without any warning:
>>>
>>> DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
>>>
>>> Now suppose I want to change this to BigAutoField. What all changes I’ll
>>> have to make in the application. Or do I just need to run migration?
>>
>
> Should have said make the change in settings first ...
>
> DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
>
>> Just makemigrations and migrate.

Thanks Mike.

Regards ~Pankaj

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/m25yzfs59k.fsf%40codeisgreat.org.

Reply via email to