jsor / doctrine-postgis

Spatial and Geographic Data with PostGIS and Doctrine.
MIT License
209 stars 50 forks source link

Error on Doctrine migration - "Requested changing type from "POINT" to "GEOMETRY"" #69

Open etshy opened 7 months ago

etshy commented 7 months ago

I have an existing entity with a property using you customType and I have to add some fields in it.

The entity uses the following type and options type: PostGISType::GEOGRAPHY, options: ['geometry_type' => 'POINT'] though I don't see in your examples using both PostGISType::GEOGRAPHY and geometry_type option together so I wonder if my colleague made an error on that and it mess with Doctrine Migration now.

Wanting to generate migration I have the following error message : The geometry_type of a spatial column cannot be changed (Requested changing type from "POINT" to "GEOMETRY" for column "XX" in table "YY")

Is that normal that a change is detected even though I didn't change anything about the geography property in my entity ?