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

Migration breakage when switching from 'jsonfield' to django.db.models.JSONField #120

Open
gbip opened this issue Jan 30, 2024 · 0 comments

Comments

@gbip
Copy link
Contributor

gbip commented Jan 30, 2024

When django-geojson switched the custom field from jsonfield to django.db.models.JSONField it broke migrations.

jsonfield used to create a text column for your json data when running 'makemigrations'. However, django.db.models.JSONField creates a json column using database-backend specific column types (ie jsonb on postgresql).

When upgrading this dependency I expected to have a new migrations when running makemigrations which would handle convert all my models geojson fields columns from text to jsonb.

No migrations were generated upon upgrading this package.

gbip added a commit that referenced this issue Jan 30, 2024
Gagaro pushed a commit that referenced this issue Feb 12, 2024
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

1 participant