- Removed 'change' form sql migration alter column in sqlite

This commit is contained in:
Dave M. 2025-07-17 18:35:27 +00:00
parent b33c67b594
commit 0192975f10
3 changed files with 11 additions and 1 deletions

View File

@ -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
{
return true;

View File

@ -44,4 +44,9 @@ trait SqlMigrationTrait
{
return false;
}
public function supportAlterColumnAction(string $action)
{
return in_array(strtolower($action), [ 'add', 'change' ]);
}
}

View File

@ -13,6 +13,6 @@ class Split extends PropertyValueModifier
public function run(mixed $value) : mixed
{
return explode($this->delimiter, $value);
return is_array($value) ? $value : explode($this->delimiter, $value);
}
}