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
Unrecognized options "dir_name, namespace" under "doctrine_migrations". Available options are "all_or_nothing", "check_database_platform", "connection", "custom_template", "em", "migrations", "migrations_paths", "name", "organize_migrations", "services", "storage" #301
Comments
Please check this thread symfony/orm-pack#22 |
Docs are quite misleading now - doc for 2.0 suggests installing 3.0 (not released yet) and lists these unsupported options happily. |
There is an issue with the symfony documentation, I've created symfony/symfony-docs#13375 You should install the 2.0, not the 3.0 |
@taixcms Do you have still this issue? |
I removed the migration package, there was no time to solve this problem unfortunately, without the migration package everything works naturally |
I will close this issue. If you still have any problem feel free to create a new one. |
I had the same problem today. The solution for me was to update the flex recipes for the project with |
I have the same problem, @camilleterol solution doesn't work for me. |
Same problem here. |
Same problem here with the last upgrade to Symfony 5.1.2 today, |
I changed |
works for me , thank you |
This seemed to work for me this morning. I hadn't updated my my core in about a month since I was laid off to covid but finally back on the project now. |
i try the each solution of above and did not work for me. Please if someone can, please reply or explain. |
@camilleterol 's solution worked fine for me...thanks a lot. |
This worked for me, Thanks. |
This worked for me, Thank you. |
Worked for me, worst time deploy a fresh install of symfony 5 |
Instead of switching back to ^2.0, just update your doctrine_migrations.yaml file. https://github.com/doctrine/DoctrineMigrationsBundle/blob/master/UPGRADE.md |
@camilleterol 's solution works, BUT it overwrites some YAML files, so be sure to check/restore those before commiting. I did not test @fd6130 's solution but it seems that that is all that is required to solve this problem. |
Hmmm, while checking
(and |
Same issue, this seems to be working. |
|
doctrine/DoctrineMigrationsBundle#301 Change-Id: I2e53a69051433f72e7e2419eb274aea3b22271d0 Signed-off-by: Andrey Shamis <lolnik@gmail.com>
Thanks, it work for me too. |
@camilleterol thx ! it work |
For those who want to upgrade from 2.x to 3.x: doctrine_migrations:
migrations_paths:
'DoctrineMigrations': 'path_to_your_migration_folder'
storage:
table_storage:
table_name: 'migration_versions'
version_column_name: 'version'
version_column_length: 255
executed_at_column_name: 'executed_at'
execution_time_column_name: 'execution_time' Doctrine will automatically add new column |
Actually the problem within the
mean while:
so i forced the Doctrine version
So you can decide which is best way for you if you decided to keep the newer version of
as @camilleterol mentioned |
Check symfony/orm-pack#29 |
When I run this, it resets and overwrite the services.yaml file, which is an issue to me. |
First i got this error message: So i did a: Then i got this error message: Which i finaly resolved by updating composer.json : So thanks to both yakupars and johannesvlot for tricks |
Thank. This solve the problem |
thnx this worked for me. |
Thanks! |
Worked for me when migrating from symfony 4.1 to symfony 4.4 |
this works for me |
Thank you so much! It worked like a charm! |
I can not handle this error
Fatal error: Uncaught Symfony\Component\Config\Definition\Exception\InvalidConfigurationException: Unrecognized options "dir_name, namespace" under "doctrine_migrations". Available options are "all_or_nothing", "check_database_platform", "connection", "custom_template", "em", "migrations", "migrations_paths", "name", "organize_migrations", "services", "storage". in /var/www/site.ru/new-spk/vendor/symfony/config/Definition/ArrayNode.php:319 Stack trace: #0 /var/www/site.ru/new-spk/vendor/symfony/config/Definition/BaseNode.php(366): Symfony\Component\Config\Definition\ArrayNode->normalizeValue(Array) #1 /var/www/site.ru/new-spk/vendor/symfony/config/Definition/Processor.php(34): Symfony\Component\Config\Definition\BaseNode->normalize(Array) #2 /var/www/site.ru/new-spk/vendor/symfony/config/Definition/Processor.php(50): Symfony\Component\Config\Definition\Processor->process(Object(Symfony\Component\Config\Definition\ArrayNode), Array) #3 /var/www/site.ru/new-spk/vendor/symfony/dependency-injection/Extension/Ex in /var/www/site.ru/new-spk/vendor/symfony/config/Definition/ArrayNode.php on line 319
The text was updated successfully, but these errors were encountered: