for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CodexShaper\DBM\Database\Types\Postgresql;
use CodexShaper\DBM\Database\Types\Type;
use Doctrine\DBAL\Platforms\AbstractPlatform;
class BitType extends Type
{
const NAME = 'bit';
public function getSQLDeclaration(array $field, AbstractPlatform $platform)
$length = empty($field['length']) ? 1 : $field['length'];
return "bit({$length})";
}