mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #49690 from nextcloud/backport/49477/stable30
This commit is contained in:
commit
418755b135
1 changed files with 7 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue