-
-
Notifications
You must be signed in to change notification settings - Fork 202
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] Cannot Hide db:wipe command #416
Comments
I ran into the same issue today. |
I am running into the same issue. |
@robertmarney @chrisbradleydev @etyson17 Can one of you work on pull request please? |
@nunomaduro would you please point us in the right direction? Is this functionality in the framework repository? |
Or would it be here? |
@nunomaduro I have been able to hide the db:wipe command by removing the Is there a test I can run to ensure this is not going to break anything? https://github.com/illuminate/database/blob/9.x/Console/WipeCommand.php#L10-L31 |
I can confirm this behavior, although I'm not certain this is an acceptable solution. If I comment lines 7, 10, and 31 in https://github.com/illuminate/database/blob/9.x/Console/WipeCommand.php and add |
It appears that lines 7 & 10 were added back in April but I am unsure why. Any clarification would be extremely helpful. Here is where they were added: |
Thanks for the investigation to date, I am going to monitor the discussion at laravel/framework#41982 and see what comes from there. @nunomaduro - My understanding is that Zero executes an artisan list and then wraps the result, if so then a good path forward might be to handle the exclusion after that function is processed? |
Hello @nunomaduro , I just fix this issue and make a pull request, could you have a look? Thank you. |
Hi @robertmarney, this should now be resolved in the latest version of the framework. 👍🏻 (At least, using |
Apologies if this has been asked before, I am trying to build a phar for dsitribution that will ship with a migrated db.
I am trying to hide db:wipe from the command list when the application is called, I have added
Illuminate\Database\Console\WipeCommand::class
to either and then both of thehidden
andremove
arrays incommands.php
with no luckThe text was updated successfully, but these errors were encountered: