public function buildTypeName(BaseDriver $driver)
{
$type = $this->type;
if ($driver instanceof SQLiteDriver) {
switch ($type) {
case 'int':
$type = 'INTEGER';
// sqlite requires auto-increment on "INTEGER"
break;
}
}
if (isset($this->length) && isset($this->decimals)) {
return $type . '(' . $this->length . ',' . $this->decimals . ')';
} elseif (isset($this->length)) {
return $type . '(' . $this->length . ')';
}
return $type;
}