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

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

Open
etshy opened this issue Apr 5, 2024 · 0 comments

Comments

@etshy
Copy link

etshy commented Apr 5, 2024

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 ?

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