Update framework/db/mssql/QueryBuilder.php

Co-authored-by: Bizley <pawel@positive.codes>
This commit is contained in:
Valerii Gorbachev
2021-04-27 12:09:32 +03:00
committed by GitHub
parent a0552f1680
commit 12ccd2adde

View File

@ -185,7 +185,12 @@ class QueryBuilder extends \yii\db\QueryBuilder
$defaultValue = $type->getDefaultValue();
if ($defaultValue !== null) {
$sqlAfter[] = $this->addDefaultValue("DF_{$constraintBase}", $table, $column, $defaultValue instanceof Expression ? $defaultValue : new Expression($defaultValue));
$sqlAfter[] = $this->addDefaultValue(
"DF_{$constraintBase}",
$table,
$column,
$defaultValue instanceof Expression ? $defaultValue : new Expression($defaultValue)
);
}
$checkValue = $type->getCheckValue();