Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro ao tentar migrar a tabela medico, o banco foi criado mas não consigo migrar a tabela

C:\Projetos_Symfony_Alura\consultorio-alura>php bin\console doctrine:migrations:diff

 Generated new migration class to "C:\Projetos_Symfony_Alura\consultorio-alura/migrations/Version20210126052020.php"

 To run just this migration for testing purposes, you can use migrations:execute --up 'DoctrineMigrations\\Version20210126052020'

 To revert the migration you can use migrations:execute --down 'DoctrineMigrations\\Version20210126052020'


C:\Projetos_Symfony_Alura\consultorio-alura>php bin\console doctrine:migrations:execute --up 'DoctrineMigrations\\Version20210126052020'

 WARNING! You are about to execute a migration in database "consultorio" that could result in schema changes and data loss. Are you sure you wish to continue? (yes/no) [yes]:
 > yes

[error] Error thrown while running command "doctrine:migrations:execute --up "'DoctrineMigrations\\Version20210126052020'"". Message: "Migration class "'DoctrineMigrations\\Version20210126052020'" was not found?"


In MigrationClassNotFound.php line 15:

  Migration class "'DoctrineMigrations\\Version20210126052020'" was not found?

1 resposta
solução!

Não sei se está é a recomendação mais apropriada, mas consegui resolver o problema utilizando o comando php bin\console make:migration que gerou um novo arquivo de migração e criou a tabela medico no banco.