Skip to content

Commit 0fed657

Browse files
Merge pull request #11 from MacPaw/feat/rename_schema_drop_command
feat: Rename PostgreSQL schema drop command
2 parents 2090129 + b7a59e4 commit 0fed657

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)