for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Db\Sqlite;
use Yiisoft\Db\Schema\ColumnSchemaBuilder as AbstractColumnSchemaBuilder;
final class ColumnSchemaBuilder extends AbstractColumnSchemaBuilder
{
/**
* Builds the unsigned string for column. Defaults to unsupported.
*
* @return string a string containing UNSIGNED keyword.
*/
protected function buildUnsignedString(): string
return $this->isUnsigned() ? ' UNSIGNED' : '';
}
public function __toString(): string
switch ($this->getTypeCategory()) {
case self::CATEGORY_PK:
$format = '{type}{check}{append}';
break;
case self::CATEGORY_NUMERIC:
$format = '{type}{length}{unsigned}{notnull}{unique}{check}{default}{append}';
default:
$format = '{type}{length}{notnull}{unique}{check}{default}{append}';
return $this->buildCompleteString($format);