diff --git a/lib/Migration/Version2060Date20200302131958.php b/lib/Migration/Version2060Date20200302131958.php index 07afb8238f..ec53f86874 100644 --- a/lib/Migration/Version2060Date20200302131958.php +++ b/lib/Migration/Version2060Date20200302131958.php @@ -66,7 +66,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt ]); $table->addColumn('guest_displayname', 'string', [ 'notnull' => false, - 'length' => 64, + 'length' => 255, ]); $table->addColumn('fileid', 'bigint', [ 'notnull' => true, diff --git a/lib/Migration/Version8058Date20251752699441.php b/lib/Migration/Version8058Date20251752699441.php new file mode 100644 index 0000000000..2c6b040f4f --- /dev/null +++ b/lib/Migration/Version8058Date20251752699441.php @@ -0,0 +1,39 @@ +hasTable('richdocuments_wopi')) { + return null; + } + + $table = $schema->getTable('richdocuments_wopi'); + if (!$table->hasColumn('guest_displayname')) { + return null; + } + + $column = $table->getColumn('guest_displayname'); + if ($column->getLength() === 255) { + return null; + } + + $column->setLength(255); + return $schema; + } +}