mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix(db): Make sure setComment() is only called with strings
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
de0141d83c
commit
72886c0bfb
1 changed files with 2 additions and 2 deletions
|
|
@ -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('');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue