Explorar o código

Return only if changed

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Git'Fellow hai 7 meses
pai
achega
a075c85eef
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      core/Migrations/Version28000Date20230803221055.php

+ 1 - 2
core/Migrations/Version28000Date20230803221055.php

@@ -54,9 +54,8 @@ class Version28000Date20230803221055 extends SimpleMigrationStep {
 
 
 			if (!$table->hasIndex('tp_tasks_uid_appid_ident')) {
 			if (!$table->hasIndex('tp_tasks_uid_appid_ident')) {
 				$table->addIndex(['user_id', 'app_id', 'identifier'], 'tp_tasks_uid_appid_ident');
 				$table->addIndex(['user_id', 'app_id', 'identifier'], 'tp_tasks_uid_appid_ident');
+				$changed = true;
 			}
 			}
-
-			$changed = true;
 		}
 		}
 
 
 		if ($changed) {
 		if ($changed) {