mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-20 08:27:21 +08:00
yii\db\Schema::insert() primary key value composition fixed
This commit is contained in:
@@ -418,7 +418,7 @@ abstract class Schema extends Object
|
||||
$result[$name] = $this->db->getLastInsertID($tableSchema->sequenceName);
|
||||
break;
|
||||
} else {
|
||||
$result[$name] = $columns[$name];
|
||||
$result[$name] = isset($columns[$name]) ? $columns[$name] : $tableSchema->columns[$name]->defaultValue;
|
||||
}
|
||||
}
|
||||
return $result;
|
||||
|
||||
Reference in New Issue
Block a user