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
So, in order to avoid a diff each time I run doctrine:scheme:validate or doctrine:migration:diff I added a small listener to remove the column, and the indices.
Today, I migrated to DBAL 4, and I had to replace this. I may be wrong, but I ended with this commit :
Hello,
I had to fix this deprecation, and honestly, I'm not really happy with the result.
My use case is the following:
I have some special columns in my DB that my Entity does not need. It's a speciel fields for indexing data. See https://www.postgresql.org/docs/current/datatype-textsearch.html
So, in order to avoid a diff each time I run
doctrine:scheme:validate
ordoctrine:migration:diff
I added a small listener to remove the column, and the indices.Today, I migrated to DBAL 4, and I had to replace this. I may be wrong, but I ended with this commit :
jolicode/qotd@dcd5313
AbstractSchemaManager
. So I needed to "implements" some protected method, But there a not used at allSchema::getSchemaConfig()
does not existI think this use case is a bit common, so I'm proposing the following
SchemaManager
InterfaceAbstractDecoratedSchemaManager
(a bit likeAbstractDriverMiddleware
)WDYT?
The text was updated successfully, but these errors were encountered: