From 2d86adc3e138620a037d0778a32a1e39a0e35e78 Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 9 Jun 2026 19:27:17 +0000 Subject: [PATCH] - Added some more info on a bad connection error --- src/Adapter/SQLite.php | 4 ---- src/ConnectionAdapter.php | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Adapter/SQLite.php b/src/Adapter/SQLite.php index 281dff3..d55bf4d 100644 --- a/src/Adapter/SQLite.php +++ b/src/Adapter/SQLite.php @@ -136,10 +136,6 @@ class SQLite implements AdapterInterface, MigrateInterface, SqlAdapterInterface } } - if (in_array($type, [ 'JSON', 'TEXT', 'BLOB', 'GEOMETRY' ])) { - unset($field->default); - } - return $typeOnly ? $type : $type . ( $length ? "($length" . ")" : "" ); } diff --git a/src/ConnectionAdapter.php b/src/ConnectionAdapter.php index 055f8dd..3e577cf 100644 --- a/src/ConnectionAdapter.php +++ b/src/ConnectionAdapter.php @@ -27,6 +27,10 @@ class ConnectionAdapter $connection = $this->configuration['connections'][$this->name] ?? []; if ( false !== ( $adapterName = $connection['adapter'] ?? false ) ) { + if (is_array($adapterName)) { + throw new \InvalidArgumentException(sprintf("Given adapter (%s) name is an array, not a string.. received : %s.", $this->name, json_encode($adapterName))); + } + $this->adapter = $this->instanciateAdapter($adapterName); } else {