Xethron / migrations-generator

Laravel Migrations Generator: Automatically generate your migrations from an existing database schema.
MIT License
3.32k stars 591 forks source link

Support option of --ignore-created-migration #193

Open LeeWeiZhang opened 4 years ago

LeeWeiZhang commented 4 years ago

In my application, it already have some existing migration and some of the table was not. I wish that if we can run

php artisan migrate:generate --ignore-created-migration 

then it generate only the migrations that not yet create.

Please tell me if this suggestion is feasible.

djunehor commented 4 years ago

Have you tried using the --ignore command to specify tables you don't want to generate migrations for? For example: php artisan migrate:generate --ignore=user,post will not create migration for users and posts table

LeeWeiZhang commented 4 years ago

yes I have already using it. I am working on the project that have hundreds of table and only some of it have migration. So I compare the tables and migration manually to make the list of table to ignore.