fix(db): Make sure setComment() is only called with strings

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2024-06-28 15:54:18 +02:00
parent de0141d83c
commit 72886c0bfb
No known key found for this signature in database
GPG key ID: 74434EFE0D2E2205

View file

@ -19,8 +19,8 @@ class SQLiteMigrator extends Migrator {
foreach ($targetSchema->getTables() as $table) {
foreach ($table->getColumns() as $column) {
// column comments are not supported on SQLite
if ($column->getComment() !== null) {
$column->setComment(null);
if ($column->getComment() !== '') {
$column->setComment('');
}
}
}