- Removed 'change' form sql migration alter column in sqlite
This commit is contained in:
parent
b33c67b594
commit
0192975f10
@ -257,6 +257,11 @@ class SQLite implements AdapterInterface, MigrateInterface, SqlAdapterInterface
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function supportAlterColumnAction(string $action)
|
||||||
|
{
|
||||||
|
return in_array(strtolower($action), [ 'add' ]);
|
||||||
|
}
|
||||||
|
|
||||||
public function splitAlterQuery() : bool
|
public function splitAlterQuery() : bool
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
@ -44,4 +44,9 @@ trait SqlMigrationTrait
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function supportAlterColumnAction(string $action)
|
||||||
|
{
|
||||||
|
return in_array(strtolower($action), [ 'add', 'change' ]);
|
||||||
|
}
|
||||||
}
|
}
|
@ -13,6 +13,6 @@ class Split extends PropertyValueModifier
|
|||||||
|
|
||||||
public function run(mixed $value) : mixed
|
public function run(mixed $value) : mixed
|
||||||
{
|
{
|
||||||
return explode($this->delimiter, $value);
|
return is_array($value) ? $value : explode($this->delimiter, $value);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user