mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 22:30:27 +08:00
Update framework/db/mssql/QueryBuilder.php
Co-authored-by: Bizley <pawel@positive.codes>
This commit is contained in:

committed by
GitHub

parent
a0552f1680
commit
12ccd2adde
@ -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();
|
||||
|
Reference in New Issue
Block a user