Skip to content

Commit

Permalink
[DB] Remove COMMENT database configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
lchrusciel committed Mar 12, 2020
1 parent 46a219b commit 724023f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Entity/Type/RefundEnumType.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ public function getName(): string

public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform): string
{
if ($platform->getName() === 'sqlite') {
return 'VARCHAR(256)';
if ($platform->getName() === 'mysql') {
return 'VARCHAR(256) COMMENT "sylius_refund_refund_type"';
}

return 'VARCHAR(256) COMMENT "sylius_refund_refund_type"';
return 'VARCHAR(256)';
}

public function convertToPHPValue($value, AbstractPlatform $platform): RefundType
Expand Down

0 comments on commit 724023f

Please sign in to comment.