mirror of
https://github.com/immich-app/immich.git
synced 2025-10-25 15:52:33 -04:00
retry cloud id mapping on migration
This commit is contained in:
parent
d81ee18238
commit
867f4fc53a
@ -71,7 +71,13 @@ Future<void> migrateDatabaseIfNeeded(Isar db, Drift drift) async {
|
||||
}
|
||||
|
||||
if (version < 15) {
|
||||
await _updateCloudId(drift);
|
||||
try {
|
||||
await _updateCloudId(drift);
|
||||
} catch (error) {
|
||||
Logger("Migration").warning("Error occurred while updating cloud ID: $error");
|
||||
// do not update version when error occurs so this is retried the next time
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (targetVersion >= 12) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user