Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Commit 87a6866

Browse files
author
Mischa Braam
committed
Add db uninstall command
1 parent eb08d82 commit 87a6866

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

cli/valet.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,9 +569,22 @@
569569
return;
570570
}
571571

572+
if ($run === 'uninstall') {
573+
if (!$defaults['yes']) {
574+
$question = new ConfirmationQuestion('Are you sure you want to remove mysql? [y/N] ', false);
575+
if (!$helper->ask($input, $output, $question)) {
576+
return;
577+
}
578+
}
579+
580+
Mysql::uninstall();
581+
582+
return;
583+
}
584+
572585
throw new RuntimeException('Command not found');
573586
})
574-
->descriptions('Database commands (list/ls, create, drop, reset, import, reimport, export/dump, pwd/password)');
587+
->descriptions('Database commands (list/ls, create, drop, reset, import, reimport, export/dump, pwd/password, uninstall)');
575588

576589
/**
577590
* Elasticsearch/opensearch services.

0 commit comments

Comments
 (0)