修改 /yiisoft/yii2/db/ColumnSchema.php
的128 行的 return null ;修改为下面
if(isset($this->defaultValue)){
return $this->defaultValue;
}else{
return null;
}
修改 /yiisoft/yii2/db/ColumnSchema.php
的128 行的 return null ;修改为下面
if(isset($this->defaultValue)){
return $this->defaultValue;
}else{
return null;
}