Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

394
Visualizações
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

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

Whenever the bundle reports executed unavailable migrations it means that there are migration identifiers in the migrations_versions database table from when you previously ran it.

To get rid of the notification, make sure that when you delete a migration file, delete its corresponding identifier from the database table.

You can do this with (or manually):

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

Or, rewind the migration with:

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

but this will run the down function of that migration file undoing whatever it set and remove it from the database.

over 4 years ago · Santiago Trujillo Relatório

0

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.

over 4 years ago · Santiago Trujillo Relatório

0

Once you deleted them, you can simply :

DELETE FROM doctrine_migration_versions;

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda