Clear Inaccessible Migration List (Symfony 3)

There are some migrations that have been deleted and left in the "Inaccessible migrations" list. How can I clean it, because each time the notification notification is annoying a bit. My hunch

migrations:doctrine:version

console

+6
source share
2 answers

I tried

php bin/console doctrine migrations:version YYYYMMDDHHMMSS --delete

and

php bin/console doctrine:migrations:execute YYYYMMDDHHMMSS --down

but it only works if we have migration.

enter image description here

I asked about the situation when the migration is removed. But thanks to DevDonkey for the information on the migration_versions table .

My solution is to run

php bin/console doctrine:migrations:status --show-versions

and see enter image description here

And remove these lines from migration_versions .

+2
source

, , , migrations_versions , .

, , .

( ):

php bin/console doctrine migrations:version YYYYMMDDHHMMSS --delete

:

php bin/console doctrine:migrations:execute YYYYMMDDHHMMSS --down

, .

+4

Source: https://habr.com/ru/post/1016749/


All Articles