aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2024-12-06 14:45:54 +0100
committerGitHub <noreply@github.com>2024-12-06 14:45:54 +0100
commit0890a99cb4e972a35235d8742baa09bba50675ec (patch)
tree82053d7d537028a8a61d294eed1aaf913544ca0b /core
parent9f0c1131359099f21d57a13d62a348eaec1e2ef8 (diff)
parent97c67ecb9cc3a62784fda7a1fd005531e88428ce (diff)
downloadnextcloud-server-0890a99cb4e972a35235d8742baa09bba50675ec.tar.gz
nextcloud-server-0890a99cb4e972a35235d8742baa09bba50675ec.zip
Merge pull request #49477 from nextcloud/hasTableTaskprocessingTasks
fix(migration): Check if table exists
Diffstat (limited to 'core')
-rw-r--r--core/Migrations/Version30000Date20240906095113.php12
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;