diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2024-11-25 17:47:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-25 17:47:14 +0100 |
commit | 97c67ecb9cc3a62784fda7a1fd005531e88428ce (patch) | |
tree | 341049c655dcdc9c09ba2f4cd8a0e0a033c8e0c4 /core | |
parent | f1ba90d52da8652570dfc20de94c9995c3a4c494 (diff) | |
download | nextcloud-server-97c67ecb9cc3a62784fda7a1fd005531e88428ce.tar.gz nextcloud-server-97c67ecb9cc3a62784fda7a1fd005531e88428ce.zip |
fix(migration): Check if table existshasTableTaskprocessingTasks
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/Migrations/Version30000Date20240906095113.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/core/Migrations/Version30000Date20240906095113.php b/core/Migrations/Version30000Date20240906095113.php index 4991aecb078..bab03241db4 100644 --- a/core/Migrations/Version30000Date20240906095113.php +++ b/core/Migrations/Version30000Date20240906095113.php @@ -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; |