mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
Update on failed
This commit is contained in:
parent
0ac5e2aa76
commit
f12a578efe
1 changed files with 3 additions and 3 deletions
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue