Update framework/db/mssql/ColumnSchemaBuilder.php

Co-authored-by: Bizley <pawel@positive.codes>
This commit is contained in:
Valerii Gorbachev
2021-04-28 18:27:30 +03:00
committed by GitHub
parent edbf4c5ff0
commit 662c54b47c

View File

@ -26,12 +26,10 @@ class ColumnSchemaBuilder extends AbstractColumnSchemaBuilder
*/
public function __toString()
{
switch ($this->getTypeCategory()) {
case self::CATEGORY_PK:
$format = '{type}{check}{comment}{append}';
break;
default:
$format = $this->format;
if ($this->getTypeCategory() === self::CATEGORY_PK) {
$format = '{type}{check}{comment}{append}';
} else {
$format = $this->format;
}
return $this->buildCompleteString($format);