django-pyodbc-azure icon indicating copy to clipboard operation
django-pyodbc-azure copied to clipboard

breaking upstream change: django core migration from AutoField to BigAutoField

Open n2ygk opened this issue 6 years ago • 4 comments

https://github.com/django/django/pull/8924 plans on making the default id in django core be a BigAutoField. Migrating existing models will break here: https://github.com/michiya/django-pyodbc-azure/blob/549026d0f6b031f69ca27f0a488cfe2266677f10/sql_server/pyodbc/schema.py#L129-L133

n2ygk avatar Jun 29 '18 13:06 n2ygk

Fixed by #189 iff merged.

n2ygk avatar Nov 28 '18 15:11 n2ygk

Fixed by #189 iff merged.

how can I use the solution on my project?

jbaltodano2019 avatar Feb 05 '20 04:02 jbaltodano2019

@neorisjaime you should probably consider using https://github.com/ESSolutions/django-mssql-backend/ instead, a fork of this which is being maintained and hopes to get into Django core one day. I believe this issue is already addressed there.

daybarr avatar Feb 05 '20 17:02 daybarr

@daybarr actually, the solution for me was to create a module for oauth2_provider. That let me execute the migrate satisfactory.

jbaltodano2019 avatar Feb 06 '20 15:02 jbaltodano2019