mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-20 16:38:22 +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);
|
$result[$name] = $this->db->getLastInsertID($tableSchema->sequenceName);
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
$result[$name] = $columns[$name];
|
$result[$name] = isset($columns[$name]) ? $columns[$name] : $tableSchema->columns[$name]->defaultValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $result;
|
return $result;
|
||||||
|
|||||||
Reference in New Issue
Block a user