Skip to content

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

@gbip

Description

@gbip

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions