mmucklo / DtcQueueBundle

Symfony2/3/4/5 Queue Bundle (for background jobs) supporting Mongo (Doctrine ODM), Mysql (and any Doctrine ORM), RabbitMQ, Beanstalkd, Redis, and ... {write your own}

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggestion: Only generate migrations if ORM is configured as queue

Lobosque opened this issue · comments

I'm new to symfony and not sure what would be the best way to handle this, but I just noticed that make:migration generates a few tables for the DtcQueueBundle. However, I believe they (or at least some of them) won't ever be used if using other transport layer than the ORM.
I wonder if it would be a good idea to somehow check the configuration to see if ORM is set before adding those tables to the migration.

That's a good point. I don't quite know how to get Doctrine / Doctrine Migrations to exclude certain directories programmatically, but I can look into it.

Added a comment to the readme about using schema_filter in your config file. That may be all I can reasonably do for now...