Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add migration note to cleanupOrphanedFiles method for future reference

AmanRajSinghMouryae7c2f5c38435
diff --git a/mobile/apps/locker/lib/services/collections/collections_service.dart b/mobile/apps/locker/lib/services/collections/collections_service.dart
index 6da0c90a57..2f74d37f0c 100644
--- a/mobile/apps/locker/lib/services/collections/collections_service.dart
+++ b/mobile/apps/locker/lib/services/collections/collections_service.dart
@@ -238,6 +238,9 @@ class CollectionService {
/// Removes orphaned files that exist in files table but have no collection mappings.
/// This is a one-time cleanup for files deleted from trash before the fix was applied.
+ ///
+ /// This migration fix can be removed after a year or so (around Nov 2026)
+ /// once all users have had the corrected trash deletion logic applied.
Future<void> cleanupOrphanedFiles() async {
try {
await _db.cleanupOrphanedFiles();