Answer the question
In order to leave comments, you need to log in
How to migrate migrations in Symfony 4?
Good day everyone. Actually such moment is interesting:
At the moment I understand symfony. The local copy of the site works with sqlite, in "production" the site runs on a separate server, and there is already a MySQL database. Migrations are created on-premises via: php bin/console doctrine:migrations:diff
The problem is moving such migrations from on-premises to the server. When I try to run them, the php bin/console doctrine:migrations:migrate
following error is displayed in the console
Error Migration can only be executed safely on 'sqlite'.
Answer the question
In order to leave comments, you need to log in
1. Look at least the code of migrations for a start. Pay attention to the if condition.
2. Usually no one keeps different DBMS in the development environment and in production.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question