Skip to content

Commit b7a59e4

Browse files
feat: Rename PostgreSQL schema drop command
Rename `doctrine:schema:delete` command to avoid conflict with Symfony `doctrine:schema:drop` command alias (`d.s.d`)
1 parent 2090129 commit b7a59e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ services:
104104

105105
Usage:
106106
```bash
107-
php bin/console doctrine:schema:delete <schema_name>
107+
php bin/console doctrine:database:schema:drop <schema_name>
108108
```
109109

110110
**Security Note:** You can specify disallowed schema names to prevent accidental deletion of critical schemas like `public`.

src/Command/Doctrine/DoctrineSchemaDropCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function __construct(
1818
Connection $connection,
1919
private readonly array $disallowedSchemaNames = [],
2020
) {
21-
parent::__construct('doctrine:schema:delete', $connection);
21+
parent::__construct('doctrine:database:schema:drop', $connection);
2222
}
2323

2424
protected function execute(

0 commit comments

Comments
 (0)