diff --git a/lib/Alchemy/Phrasea/Model/Types/BinaryString.php b/lib/Alchemy/Phrasea/Model/Types/BinaryString.php index a9020d2ecf..c9b6788ada 100644 --- a/lib/Alchemy/Phrasea/Model/Types/BinaryString.php +++ b/lib/Alchemy/Phrasea/Model/Types/BinaryString.php @@ -30,6 +30,14 @@ class BinaryString extends Type return $platform->getVarcharTypeDeclarationSQL($fieldDeclaration)." ". $platform->getCollationFieldDeclaration('utf8_bin'); } - throw new RuntimeException(sprintf('Type %s is not supported.', self::BINARY_STRING)); + return $platform->getVarcharTypeDeclarationSQL($fieldDeclaration); + } + + /** + * {@inheritdoc} + */ + public function getDefaultLength(AbstractPlatform $platform) + { + return $platform->getVarcharDefaultLength(); } }