Use platformName to determine db type (#1212)

* Use current connection platform (driver) instead of default connection name to determine used dbms. Previous solution isn't working, when multiple connections with custom names are used.

* chore: add changelog

Co-authored-by: Markus Podar <[email protected]>
This commit is contained in:
Alexander Stock
2021-06-20 10:38:04 +02:00
committed by GitHub
co-authored by Markus Podar
parent e71f3d5fc0
commit af84c78dec
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -7,6 +7,9 @@ All notable changes to this project will be documented in this file.
### Fixed
- Fix recursively searching for `HasFactory` and `Macroable` traits [\#1216 / daniel-de-wit](https://github.com/barryvdh/laravel-ide-helper/pull/1216)
### Fixed
- Use platformName to determine db type when casting boolean types [\#1212 / stockalexander](https://github.com/barryvdh/laravel-ide-helper/pull/1212)
2021-04-09, 2.10.0
------------------
### Added
+1 -1
View File
@@ -463,7 +463,7 @@ class ModelsCommand extends Command
$type = 'integer';
break;
case 'boolean':
switch (config('database.default')) {
switch ($platformName) {
case 'sqlite':
case 'mysql':
$type = 'integer';