diff --git a/lib/Migration/Version10100Date20260226000000.php b/lib/Migration/Version10100Date20260226000000.php new file mode 100644 index 0000000000..6ada5909a5 --- /dev/null +++ b/lib/Migration/Version10100Date20260226000000.php @@ -0,0 +1,42 @@ +hasTable('richdocuments_wopi')) { + $table = $schema->getTable('richdocuments_wopi'); + foreach (['owner_uid', 'editor_uid'] as $columnName) { + if ($table->hasColumn($columnName) && $table->getColumn($columnName)->getLength() < 255) { + $table->changeColumn($columnName, [ + 'length' => 255, + ]); + $changed = true; + } + } + } + + return $changed ? $schema : null; + } +}