diff --git a/README.md b/README.md index 4f407e1..6b15856 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ services: Usage: ```bash -php bin/console doctrine:schema:delete +php bin/console doctrine:database:schema:drop ``` **Security Note:** You can specify disallowed schema names to prevent accidental deletion of critical schemas like `public`. diff --git a/src/Command/Doctrine/DoctrineSchemaDropCommand.php b/src/Command/Doctrine/DoctrineSchemaDropCommand.php index cd352b3..91102f1 100644 --- a/src/Command/Doctrine/DoctrineSchemaDropCommand.php +++ b/src/Command/Doctrine/DoctrineSchemaDropCommand.php @@ -18,7 +18,7 @@ public function __construct( Connection $connection, private readonly array $disallowedSchemaNames = [], ) { - parent::__construct('doctrine:schema:delete', $connection); + parent::__construct('doctrine:database:schema:drop', $connection); } protected function execute(