mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 13:58:55 +08:00
Update framework/db/mssql/ColumnSchemaBuilder.php
Co-authored-by: Bizley <pawel@positive.codes>
This commit is contained in:
committed by
GitHub
parent
edbf4c5ff0
commit
662c54b47c
@ -26,12 +26,10 @@ class ColumnSchemaBuilder extends AbstractColumnSchemaBuilder
|
|||||||
*/
|
*/
|
||||||
public function __toString()
|
public function __toString()
|
||||||
{
|
{
|
||||||
switch ($this->getTypeCategory()) {
|
if ($this->getTypeCategory() === self::CATEGORY_PK) {
|
||||||
case self::CATEGORY_PK:
|
$format = '{type}{check}{comment}{append}';
|
||||||
$format = '{type}{check}{comment}{append}';
|
} else {
|
||||||
break;
|
$format = $this->format;
|
||||||
default:
|
|
||||||
$format = $this->format;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->buildCompleteString($format);
|
return $this->buildCompleteString($format);
|
||||||
|
|||||||
Reference in New Issue
Block a user