Skip to content

Commit

Permalink
fix: exclude fields when default = 0 in sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
WatheqAlshowaiter committed Jul 15, 2024
1 parent b88cd70 commit 448911f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/RequiredFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private static function getRequiredFieldsForSqlite(): array
return collect($queryResult)
->reject(
fn ($column) => $column['pk']
|| $column['dflt_value']
|| $column['dflt_value'] != null
|| ! $column['notnull']
)
->pluck('name')
Expand Down
2 changes: 1 addition & 1 deletion todos.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- [ ] try previous versions of laravel until laravel 6
- [x] 11 => sqlite, mysql/mariadb(1st party supported in Laravel 11), postgres
- [x] 10 => sqlite, mysql, postgres
- [ ] 9 =>
- [ ] 9 => sqlite, mysql, postgres
- [ ] 8 =>
- [ ] 7 =>
- [ ] 6 =>
Expand Down

0 comments on commit 448911f

Please sign in to comment.