mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Update on failed
This commit is contained in:
1 parent
0ac5e2aa76
commit
f12a578efe
1 file changed
+3
-3
@@ -374,9 +374,6 @@ class Migrations extends Action
|
||||
$log->addTag('migrationErrors', json_encode($errorMessages));
|
||||
}
|
||||
} finally {
|
||||
$destination->error();
|
||||
$source->error();
|
||||
|
||||
if (! $tempAPIKey->isEmpty()) {
|
||||
$this->removeAPIKey($tempAPIKey);
|
||||
}
|
||||
@@ -384,6 +381,9 @@ class Migrations extends Action
|
||||
$this->updateMigrationDocument($migration, $projectDocument);
|
||||
|
||||
if ($migration->getAttribute('status', '') == 'failed') {
|
||||
$destination->error();
|
||||
$source->error();
|
||||
|
||||
throw new Exception('Migration failed');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user