Re: Converting from AutoField to BigAutoField

2021-05-18 Thread Pankaj Jangid
>>> >>> 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 c

Re: Converting from AutoField to BigAutoField

2021-05-17 Thread Mike Dewhirst
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. M -- Signed

Re: Converting from AutoField to BigAutoField

2021-05-17 Thread Mike Dewhirst
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 ch

Converting from AutoField to BigAutoField

2021-05-17 Thread Pankaj Jangid
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

Changing Primary Key from BigAutoField to BigIntegerField not working

2020-01-20 Thread Amiganer
Hello. I'm using postgresql 12 and psycopg2, Python 3.7, Django 3.0.2 (actual stable branch) I declared first my Model with a BigAutoField as Primary_key, later i menchend that the ID field is unique, the id's are predefined and unique. I tried to change the id to a BigIntegerFie

Re: BigAutoField not working

2019-07-29 Thread Chetan Ganji
can help you. On Mon, Jul 29, 2019, 10:03 PM Akshaya Krishnan wrote: > Hi all, > > I am trying to create a field in Django 2.2 with BigAutoField as the > datatype. The backend is MySql. And I am using the mysql.connector. > > When I try to add datatype as BigAutoField for the co

BigAutoField not working

2019-07-29 Thread Akshaya Krishnan
Hi all, I am trying to create a field in Django 2.2 with BigAutoField as the datatype. The backend is MySql. And I am using the mysql.connector. When I try to add datatype as BigAutoField for the column, I cannot see that column in my table. If I alter it from 'AutoField' to &#x

how to define migrations to use BigAutoField

2018-04-30 Thread Priyanka Thakur
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 t

Re: BigAutoField

2013-01-23 Thread SteveB
omments from Core Developers. > > -- > Pankaj Singh > http://about.me/psjinx > > > On Wed, Jan 23, 2013 at 6:58 PM, SteveB > > wrote: > > Can anybody provide an update on the request to define a BigAutoField in > > Django? > > We could real

Re: BigAutoField

2013-01-23 Thread Pankaj Singh
ovide an update on the request to define a BigAutoField in > Django? > We could really use this model field type without having to do workarounds > and customizations. > Can any of the Django developers comment on when this will be released? > > Thanks, > Steve > > -- > You

BigAutoField

2013-01-23 Thread SteveB
Can anybody provide an update on the request to define a BigAutoField in Django? We could really use this model field type without having to do workarounds and customizations. Can any of the Django developers comment on when this will be released? Thanks, Steve -- You received this message