Closed ThomasBerends closed 6 days ago
Hello,
Thank you for your message. What a surprise to discover tutorials about this package ! This issue doesn't come from Postgis, nor this library, nor doctrine-migration. It sounds like a misunderstood about the doctrine-migration package.
As far as I remember, you only have to tell doctrine migration to ignore the tiger schema. I didn't check the following code, but it should contain the solution.
doctrine_migrations:
# ... autres configurations
migrations_namespace: App\DoctrineMigrations
# Exclure le schéma "tiger"
schema_filter: '~^(?!tiger)~'
I'll appreciate if you could test it and report us if it solve your issue.
It worked like this:
doctrine:
dbal:
schema_filter: '~^(?!tiger)~'
Would it be an idea to add this to the documentation? I can make a PR, but not sure if it's desired or not.
Thank you for your feedback !
Even if it's more an issue linked to doctrine-migration, IMHO it could be great to add your answer to the documentation. Feel free to make a PR ! Thanks again !
Hi. I'm probably doing something wrong myself, but here's my steps:
For a database with postgis, I'm using the official docker image
postgis/postgis:16-master
.I've installed
longitude-one/doctrine-spatial
(version 5.0.2) and I've added the following to my config:This works as expected.
When I run
php bin/console make:migration
, it creates a migration succesfully, however, it contains this:The same issue is described in this blog here, and while the problem seems correct, I feel the solution provided there is not the correct one since I expect this package to have a solution to this.
Is there something I'm missing?