- Bugfixes made while working on lean/console database migrations

This commit is contained in:
Dave Mc Nicoll committed 2023-08-31 09:15:50 -04:00
1 parent 8489cb4841
commit cc741566fb
6 files changed
+39 -78

No files matched your search

-19
View File
@@ -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 [