mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Fix binary string type
This commit is contained in:
@@ -30,6 +30,14 @@ class BinaryString extends Type
|
|||||||
return $platform->getVarcharTypeDeclarationSQL($fieldDeclaration)." ". $platform->getCollationFieldDeclaration('utf8_bin');
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user