Skip to content

Commit

Permalink
Add comment to fixBlurhashMigrationIds
Browse files Browse the repository at this point in the history
  • Loading branch information
jmshrv committed Aug 11, 2023
1 parent 4f9cedf commit f62591a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/services/downloads_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,12 @@ class DownloadsHelper {
_downloadsLogger.info("${imagesToDelete.length} duplicate images deleted.");
}

/// Fixes DownloadedImage IDs created by the migration in 0.6.15. In it,
/// migrated images did not have their IDs set to the blurhash. This function
/// sets every image's ID to its blurhash. This function should only be run
/// once, only when required (i.e., upgrading from 0.6.15). In theory, running
/// it on an unaffected database should do nothing, but there's no point doing
/// redundant migrations.
Future<void> fixBlurhashMigrationIds() async {
_downloadsLogger.info("Fixing blurhash migration IDs from 0.6.15");

Expand Down

0 comments on commit f62591a

Please sign in to comment.