Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LeeWeiZhang opened this issue Sep 19, 2019 · 2 comments
Open

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

LeeWeiZhang opened this issue Sep 19, 2019 · 2 comments

Comments

@LeeWeiZhang
Copy link

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
Copy link

djunehor commented Nov 6, 2019

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants