From 72886c0bfbf820c5b09d7624a88fc68dd5dc003a Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 28 Jun 2024 15:54:18 +0200 Subject: [PATCH] fix(db): Make sure setComment() is only called with strings Signed-off-by: Joas Schilling --- lib/private/DB/SQLiteMigrator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/DB/SQLiteMigrator.php b/lib/private/DB/SQLiteMigrator.php index 6be17625476..a8b28832300 100644 --- a/lib/private/DB/SQLiteMigrator.php +++ b/lib/private/DB/SQLiteMigrator.php @@ -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(''); } } }