You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm using the DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" setting in a project.
When I install django-sql-explorer and run make migrations it will create a bad migration file on the django-sql-explorer instalaltion directory that alters the id fields. It's contents are similar to this:
Hello, I'm using the DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" setting in a project.
When I install django-sql-explorer and run make migrations it will create a bad migration file on the django-sql-explorer instalaltion directory that alters the id fields. It's contents are similar to this:
To fix that we need to add the line
default_auto_field = django.db.models.AutoField
on apps.py so as to not use thedjango.db.models.BigAutoField
I'm using on my settings. See https://docs.djangoproject.com/en/4.1/ref/applications/#django.apps.AppConfig.default_auto_field for reference.This is a single line change, I'd be happy to provide a PR if needed.
BR,
Serafeim
The text was updated successfully, but these errors were encountered: