From b7a59e400b1759da82204471b4eb2ad88c8edcd7 Mon Sep 17 00:00:00 2001 From: Aleksey Tupichenkov Date: Tue, 16 Sep 2025 10:17:26 +0300 Subject: [PATCH] feat: Rename PostgreSQL schema drop command Rename `doctrine:schema:delete` command to avoid conflict with Symfony `doctrine:schema:drop` command alias (`d.s.d`) --- README.md | 2 +- src/Command/Doctrine/DoctrineSchemaDropCommand.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(