mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 21:41:19 +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()
|
||||
{
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user