- Bugfixes made while working on lean/console database migrations
This commit is contained in:
1 parent
8489cb4841
commit
cc741566fb
6 files changed
+39
-78
No files matched your search
@@ -137,25 +137,6 @@ class SQLite implements AdapterInterface {
|
||||
return $typeOnly ? $type : $type . ( $length ? "($length" . ( isset($precision) ? ",$precision" : "" ) . ")" : "" );
|
||||
}
|
||||
|
||||
public function writableValue(mixed $value) /*: mixed*/
|
||||
{
|
||||
switch (true) {
|
||||
case $value instanceof \UnitEnum:
|
||||
return Ulmus::convertEnum($value);
|
||||
|
||||
case is_object($value):
|
||||
return Ulmus::convertObject($value);
|
||||
|
||||
case is_array($value):
|
||||
return json_encode($value);
|
||||
|
||||
case is_bool($value):
|
||||
return (int) $value;
|
||||
}
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
public function tableSyntax() : array
|
||||
{
|
||||
return [
|
||||
|
||||
Reference in new issue
Block a user