- Added some more info on a bad connection error

This commit is contained in:
Dev 2026-06-09 19:27:17 +00:00
parent 2a03789e7c
commit 2d86adc3e1
2 changed files with 4 additions and 4 deletions

View File

@ -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" . ")" : "" ); return $typeOnly ? $type : $type . ( $length ? "($length" . ")" : "" );
} }

View File

@ -27,6 +27,10 @@ class ConnectionAdapter
$connection = $this->configuration['connections'][$this->name] ?? []; $connection = $this->configuration['connections'][$this->name] ?? [];
if ( false !== ( $adapterName = $connection['adapter'] ?? false ) ) { 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); $this->adapter = $this->instanciateAdapter($adapterName);
} }
else { else {