1
votes

I'm looking for a way to execut the command which make migration into a controller. I already took a look at doc https://symfony.com/doc/current/console.html but it doesn't really give a response to my question.

What i want : Be able to execute php bin/console doctrine:migrations:generate in a controller. Moreover, there no security problem by doing this ?

Have a nice day !

1

1 Answers

0
votes

It is inefficient to change database schema runtime. You may encounter unforeseen effects in your application w.r.t test cases, performance in broader term, etc.