- Added some more info on a bad connection error
This commit is contained in:
parent
2a03789e7c
commit
2d86adc3e1
@ -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" . ")" : "" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user