how to define migrations to use BigAutoField

18 views
Skip to first unread message

Priyanka Thakur

unread,
Apr 30, 2018, 4:51:43 AM4/30/18
to Django users
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 
Reply all
Reply to author
Forward
0 new messages