You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I started getting this error when I run bin/console doctrine:migrations:diff even though I haven't made any changes to the entity and table that are causing this issue.
In DBALSchemaEventSubscriber.php line 157:
The geometry_type of a spatial column cannot be changed (Requested changing type from "POINT" to "GEOMETRY" for column "coordinates" in table "main.locations")
What I did do is frequently update composer packages so I'm suspecting it might be happening only in the newer versions, these are the versions from my composer.lock:
As you can see the _customSchemaOptions don't match for some reason. When I go to the \Doctrine\DBAL\Schema\Column class I see that the _customSchemaOptions has been deprecated, so I don't know if that could be potentially related to the issue.
Another way to verify the issue is when you drop the database and try to recreate the diff, in that case, this error won't happen but the newly generated migration won't match it will look like this coordinates geography(GEOMETRY, 4326)
The text was updated successfully, but these errors were encountered:
Hi there, I started getting this error when I run
bin/console doctrine:migrations:diff
even though I haven't made any changes to the entity and table that are causing this issue.What I did do is frequently update composer packages so I'm suspecting it might be happening only in the newer versions, these are the versions from my composer.lock:
I'm using this inside of a Symfony app if that adds more context.
This is my doctrine mapping which hasn't changed since adding this amazing package.
This is what I get when I dump the new column in DBALSchemaEventSubscriber.php line 157:
And this is what I get for the old column:
As you can see the
_customSchemaOptions
don't match for some reason. When I go to the\Doctrine\DBAL\Schema\Column
class I see that the_customSchemaOptions
has been deprecated, so I don't know if that could be potentially related to the issue.Another way to verify the issue is when you drop the database and try to recreate the diff, in that case, this error won't happen but the newly generated migration won't match it will look like this
coordinates geography(GEOMETRY, 4326)
The text was updated successfully, but these errors were encountered: