Skip to content

Commit

Permalink
Fix Undefined index:primary for SQLITE
Browse files Browse the repository at this point in the history
  • Loading branch information
Rena Holmgren committed Apr 15, 2022
1 parent b761be3 commit 570ba13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Meta/Sqlite/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ protected function fillPrimaryKey(Blueprint $blueprint)
$key = [
'name' => 'primary',
'index' => '',
'columns' => $indexes['primary']->getColumns(),
'columns' => optional($indexes['primary']??null)->getColumns()?:[],
];

$blueprint->withPrimaryKey(new Fluent($key));
Expand Down

0 comments on commit 570ba13

Please sign in to comment.