I tried
php bin/console doctrine migrations:version YYYYMMDDHHMMSS --delete
and
php bin/console doctrine:migrations:execute YYYYMMDDHHMMSS
but it only works if we have migration.
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
And remove these lines from migration_versions .
source
share