phalcon / migrations

Generate or migrate database changes via migrations.
https://docs.phalcon.io/latest/en/db-migrations
BSD 3-Clause "New" or "Revised" License
27 stars 23 forks source link

[NFR] Generate new migration only on changed structure #16

Open ruudboon opened 4 years ago

ruudboon commented 4 years ago

It would be nice if there is an option to skip the generation when de database structure isn't changed. For example when there is a migration (v1.0.0) and nothing has changed running the generate will result in something like:

vendor/bin/phalcon-migrations migration generate
Database hasn't changed. Skipped generation. Run migration generate --force to force generating a new version.