Add index

This commit is contained in:
Neeraj Gupta
2025-08-06 14:51:41 +05:30
parent 5aa36921d8
commit c29446e00a
2 changed files with 7 additions and 1 deletions

View File

@@ -118,6 +118,12 @@ class RemoteDBMigration {
)
''',
'''
CREATE INDEX IF NOT EXISTS file_hash_index ON files(hash);
''',
'''
CREATE INDEX IF NOT EXISTS file_creation_time_index ON files(creation_time);
''',
'''
CREATE TABLE files_metadata (
id INTEGER PRIMARY KEY,
metadata TEXT NOT NULL,

View File

@@ -15,7 +15,7 @@ import "package:photos/services/local/asset_entity.service.dart";
//Todo: files with no location data have lat and long set to 0.0. This should ideally be null.
class EnteFile {
static final _logger = Logger('File');
static final _logger = Logger('EnteFile');
AssetEntity? lAsset;
RemoteAsset? rAsset;
CollectionFile? cf;