Remove unhelpful index

This commit is contained in:
vishnukvmd 2024-01-18 02:16:53 +05:30
parent d27fa91833
commit 9324849767

View file

@ -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);