mirror of
https://github.com/immich-app/immich.git
synced 2025-12-18 09:13:15 +03:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user