'Clear list of "Unavailable Migrations" (Symfony 3)
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.
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 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 |



