Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breaking upstream change: django core migration from AutoField to BigAutoField #172

Open
n2ygk opened this issue Jun 29, 2018 · 4 comments

Comments

@n2ygk
Copy link

n2ygk commented Jun 29, 2018

django/django#8924 plans on making the default id in django core be a BigAutoField. Migrating existing models will break here:

# the backend doesn't support altering from/to (Big)AutoField
# because of the limited capability of SQL Server to edit IDENTITY property
for t in (AutoField, BigAutoField):
if isinstance(old_field, t) or isinstance(new_field, t):
raise NotImplementedError("the backend doesn't support altering from/to %s." % t.__name__)

@n2ygk
Copy link
Author

n2ygk commented Nov 28, 2018

Fixed by #189 iff merged.

@jbaltodano2019
Copy link

Fixed by #189 iff merged.

how can I use the solution on my project?

@daybarr
Copy link

daybarr commented Feb 5, 2020

@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.

@jbaltodano2019
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants