feat: migrate backup albums to sqlite (#20049)

* do not migrate again on app start

* migrate backup albums over to sqlite

---------

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong 2025-07-21 23:26:49 +05:30 committed by GitHub
parent dee6d072fb
commit 5fc4393e7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 87 additions and 14 deletions

View file

@ -13,6 +13,18 @@ class BackupAlbum {
BackupAlbum(this.id, this.lastBackup, this.selection);
Id get isarId => fastHash(id);
BackupAlbum copyWith({
String? id,
DateTime? lastBackup,
BackupSelection? selection,
}) {
return BackupAlbum(
id ?? this.id,
lastBackup ?? this.lastBackup,
selection ?? this.selection,
);
}
}
enum BackupSelection {