mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00: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:
parent
dee6d072fb
commit
5fc4393e7a
3 changed files with 87 additions and 14 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue