summaryrefslogtreecommitdiffstats
path: root/core/Migrations
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2023-11-01 17:17:44 +0100
committerGitHub <noreply@github.com>2023-11-01 17:17:44 +0100
commita075c85eef0bc18bb442eb887327cf4d7651ea69 (patch)
tree4a3144b4a900b1431615d8d652f47dc7bc6ba876 /core/Migrations
parent91c92f533ef8e014b714875f86a320639de5fd10 (diff)
downloadnextcloud-server-a075c85eef0bc18bb442eb887327cf4d7651ea69.tar.gz
nextcloud-server-a075c85eef0bc18bb442eb887327cf4d7651ea69.zip
Return only if changed
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Diffstat (limited to 'core/Migrations')
-rw-r--r--core/Migrations/Version28000Date20230803221055.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/Migrations/Version28000Date20230803221055.php b/core/Migrations/Version28000Date20230803221055.php
index 3aaf4f19431..799eb15e06e 100644
--- a/core/Migrations/Version28000Date20230803221055.php
+++ b/core/Migrations/Version28000Date20230803221055.php
@@ -54,9 +54,8 @@ class Version28000Date20230803221055 extends SimpleMigrationStep {
if (!$table->hasIndex('tp_tasks_uid_appid_ident')) {
$table->addIndex(['user_id', 'app_id', 'identifier'], 'tp_tasks_uid_appid_ident');
+ $changed = true;
}
-
- $changed = true;
}
if ($changed) {