Skip to content

Commit

Permalink
Add enum class comment to created enums
Browse files Browse the repository at this point in the history
  • Loading branch information
pfilsx committed Dec 22, 2022
1 parent fc9f036 commit a2df494
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/DBAL/Platform/PostgreSQLPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function quoteEnumLabel(mixed $label): int|string
}
}

protected function initializeDoctrineTypeMappings()
protected function initializeDoctrineTypeMappings(): void
{
parent::initializeDoctrineTypeMappings();

Expand Down
1 change: 1 addition & 0 deletions src/DBAL/Schema/SchemaDiff.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public function toSql(AbstractPlatform $platform): array

foreach ($this->getCreatedTypes() as $type) {
$sql[] = $platform->getCreateTypeSql($type);
$sql[] = $platform->getCommentOnTypeSql($type);
}

foreach ($this->getAlteredTypes() as $alterTypeArray) {
Expand Down

0 comments on commit a2df494

Please sign in to comment.