Merge pull request #49690 from nextcloud/backport/49477/stable30

This commit is contained in:
John Molakvoæ 2024-12-12 13:22:47 +01:00 committed by GitHub
commit 418755b135
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,11 +28,13 @@ class Version30000Date20240906095113 extends SimpleMigrationStep {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();
$table = $schema->getTable('taskprocessing_tasks');
$column = $table->getColumn('error_message');
if ($column->getLength() < 4000) {
$column->setLength(4000);
if ($schema->hasTable('taskprocessing_tasks')) {
$table = $schema->getTable('taskprocessing_tasks');
$column = $table->getColumn('error_message');
if ($column->getLength() < 4000) {
$column->setLength(4000);
}
}
return $schema;