php bin/console make:migration
Create a new migration based on database changes
Usage
make:migration [--formatted] [--configuration [CONFIGURATION]]
Options
--formatted Format the generated SQL
--configuration The path of doctrine configuration file
Help
The make:migration command generates a new migration:
php bin/console make:migration
You can also generate a formatted migration with this option:
php bin/console make:migration --formatted