Monday, April 30, 2018

how to define migrations to use BigAutoField

Hi,

We have recently migrated to django 1.10 and with prior version of Django 1.7 we had . a patch to convert AutoField to "BigInt" instead of "int".

Since Django 1.10 provides capability to use BigAutoField for "BigInt", we don't want to patch anymore.

Is there a way to define primary key as "BIgAutoField" in settings , so that we don't have to explicitly define "id" column for each model.

Regards,
Priyanka 

--
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+unsubscribe@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/88591094-b2ec-4e81-92b5-ca93557dec67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment