'Clear list of "Unavailable Migrations" (Symfony 3)

There are some migrations, that was deleted, and left at the list of "Unavailable Migrations". How can I clear it, because every time notice message annoy a little bit. My guess is

migrations:doctrine:version

console



Solution 1:[1]

I have tried

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

and

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

but it works only if we actually have migration.

enter image description here

I asked about situation when migration is deleted. But thanks DevDonkey for information about migration_versions table.

My solution is, to run

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

and see enter image description here

And delete from migration_versions these rows.

Solution 2:[2]

Once you deleted them, you can simply :

DELETE FROM doctrine_migration_versions;

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Viktor Sydorenko
Solution 2