Skip to content

feat: add WipeDatabaseCommand for database management #594

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

WINBIGFOX
Copy link
Contributor

Introduced the WipeDatabaseCommand to streamline database wiping in the NativePHP development environment.

Introduced the WipeDatabaseCommand to streamline database wiping in the NativePHP development environment.
{
protected $name = 'native:db:wipe';

protected $description = 'Wipe the database in the NativePHP development environment';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"In the development environment" - should this have a check for app()->isLocal()?

Could allow the --force flag if someone intends to use in production for safety?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have thought that this check should be handled with the DB::prohibitDestructiveCommands() function.

https://laravel-news.com/prevent-destructive-commands-from-running-in-laravel-11

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

Successfully merging this pull request may close these issues.

3 participants