- Bugfixes made while working on lean/console
This commit is contained in:
1 parent
338b599d39
commit
9ebf7b05d7
5 files changed
+23
-1
No files matched your search
@@ -30,4 +30,5 @@ interface AdapterInterface {
|
||||
public function tableSyntax() : array;
|
||||
public function whitelistAttributes(array &$parameters) : void;
|
||||
public function generateAlterColumn(FieldDefinition $definition, array $field) : string|\Stringable;
|
||||
public function splitAlterQuery() : bool;
|
||||
}
|
||||
@@ -229,7 +229,7 @@ class MsSQL implements AdapterInterface {
|
||||
return Ulmus::convertObject($value);
|
||||
|
||||
case is_array($value):
|
||||
return json_encode($array);
|
||||
return json_encode($value);
|
||||
|
||||
case is_bool($value):
|
||||
return (int) $value;
|
||||
@@ -252,4 +252,9 @@ class MsSQL implements AdapterInterface {
|
||||
{
|
||||
return QueryBuilder\MssqlQueryBuilder::class;
|
||||
}
|
||||
|
||||
public function splitAlterQuery() : bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -175,4 +175,9 @@ class MySQL implements AdapterInterface {
|
||||
{
|
||||
return "InnoDB";
|
||||
}
|
||||
|
||||
public function splitAlterQuery() : bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -213,4 +213,9 @@ class SQLite implements AdapterInterface {
|
||||
$definition->getSqlParams(),
|
||||
]);
|
||||
}
|
||||
|
||||
public function splitAlterQuery() : bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user