Skip to content

armgit / ente

Public Imported from GitHub
0

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

Remove unhelpful index

vishnukvmd932484976746
diff --git a/lib/db/files_db.dart b/lib/db/files_db.dart
index 4e6e7d1290..39ff832103 100644
--- a/lib/db/files_db.dart
+++ b/lib/db/files_db.dart
@@ -87,7 +87,6 @@ class FilesDB {
...updateIndexes(),
...createEntityDataTable(),
...addAddedTime(),
- ...addIndexOnUploadedID(),
];
final dbConfig = MigrationConfig(
@@ -398,14 +397,6 @@ class FilesDB {
];
}
- static List<String> addIndexOnUploadedID() {
- return [
- '''
- CREATE INDEX IF NOT EXISTS uploaded_file_id_index ON $filesTable($columnUploadedFileID);
- '''
- ];
- }
-
Future<void> clearTable() async {
final db = await instance.database;
await db.delete(filesTable);