#36129: Geodjango migrations ignore change of dimension in MultiPointField
------------------------------+--------------------------------------
     Reporter:  Paweł Kotiuk  |                    Owner:  (none)
         Type:  Bug           |                   Status:  closed
    Component:  GIS           |                  Version:  dev
     Severity:  Normal        |               Resolution:  invalid
     Keywords:  migrations    |             Triage Stage:  Unreviewed
    Has patch:  0             |      Needs documentation:  0
  Needs tests:  0             |  Patch needs improvement:  0
Easy pickings:  0             |                    UI/UX:  0
------------------------------+--------------------------------------
Comment (by Paweł Kotiuk):

 I have simpler reproduction for you using postGIS this time:

 1. Download repro_project.zip I uploaded and unpack it.
 2. Launch postgis using docker `docker run --rm -it -e
 POSTGRES_PASSWORD=password -p 5432:5432 postgis/postgis`
 3. Open terminal and launch commands  `./manage.py makemigrations` and
 `./manage.py test` -> everything is fine
 3. Change dim from 2 to 3 in the `models.py`
 4. launch commands  `./manage.py makemigrations` and `./manage.py test` ->
 you get error: `django.db.utils.DataError: Column has Z dimension but
 geometry does not`
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36129#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/01070195b422ec35-d11b30fc-ae1d-49eb-890d-343c279f7b16-000000%40eu-central-1.amazonses.com.

Reply via email to