Hi,

I have a model with a PointField, created with the spatial_index set as True
(the default value). Doing a \d table_name on postgresql revealed the index
that was created, as expected.

I updated the spatial_index to False and ran the migrations, which *did not*
drop the index in the db.

I was also able to repro this with a PointField created with spatial_index 
as
False. When the field was updated to set spatial_index as True, an index was
not created in the database. Looks like AlterField migration is not working
with PointField and spatial_index.

I'm running Django 1.9.9 and PostgreSQL 9.5.1

Best,
Arjun

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/715c3571-f17e-44ff-b933-72badf98e3ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to