diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2023-11-01 17:17:44 +0100 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-11-02 01:10:35 +0000 |
commit | 659d7e2313ddf50104e1257968c5244306cad363 (patch) | |
tree | ebfbc032a508dc166e5ee8ce56f68b6f9e0efb8c | |
parent | ad6ccdbd217d4ba44a9da3ffc9298bc68dc02803 (diff) | |
download | nextcloud-server-659d7e2313ddf50104e1257968c5244306cad363.tar.gz nextcloud-server-659d7e2313ddf50104e1257968c5244306cad363.zip |
Return only if changed
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
-rw-r--r-- | core/Migrations/Version28000Date20230803221055.php | 3 |
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) { |