diff --git a/src/DBAL/Platform/PostgreSQLPlatform.php b/src/DBAL/Platform/PostgreSQLPlatform.php index c0688dd..53df92d 100644 --- a/src/DBAL/Platform/PostgreSQLPlatform.php +++ b/src/DBAL/Platform/PostgreSQLPlatform.php @@ -84,7 +84,7 @@ public function quoteEnumLabel(mixed $label): int|string } } - protected function initializeDoctrineTypeMappings() + protected function initializeDoctrineTypeMappings(): void { parent::initializeDoctrineTypeMappings(); diff --git a/src/DBAL/Schema/SchemaDiff.php b/src/DBAL/Schema/SchemaDiff.php index 83d800e..0bfa63c 100644 --- a/src/DBAL/Schema/SchemaDiff.php +++ b/src/DBAL/Schema/SchemaDiff.php @@ -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) {