You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-08-08 23:07:06 +02:00
chore: catch migration error (#19096)
This commit is contained in:
@ -166,6 +166,7 @@ Future<void> _migrateDeviceAsset(Isar db) async {
|
||||
}
|
||||
|
||||
Future<void> _migrateDeviceAssetToSqlite(Isar db, Drift drift) async {
|
||||
try {
|
||||
final isarDeviceAssets =
|
||||
await db.deviceAssetEntitys.where().sortByAssetId().findAll();
|
||||
await drift.batch((batch) {
|
||||
@ -185,6 +186,13 @@ Future<void> _migrateDeviceAssetToSqlite(Isar db, Drift drift) async {
|
||||
);
|
||||
}
|
||||
});
|
||||
} catch (error) {
|
||||
if (kDebugMode) {
|
||||
debugPrint(
|
||||
"[MIGRATION] Error while migrating device assets to SQLite: $error",
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class _DeviceAsset {
|
||||
|
Reference in New Issue
Block a user