Skip to content

ALTER TABLE Entries in Migration Files

korzol edited this page Apr 2, 2020 · 1 revision

According to Symfonycasts | Symfony4 - Doctrine & the Database

The make:migration command look at the entity, look at the database, determined the difference between the two, then generate the SQL necessary to update the database.

So if bin/console make:migration creates migration file with ALTER TABLE entries in it, obviously there is some difference between real MySQL table and entity file for this table.