mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-27 15:07:45 +00:00
fix: migration on trash source column (#25590)
Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
parent
f7291c3a0b
commit
46d2238431
1 changed files with 7 additions and 1 deletions
|
|
@ -193,7 +193,13 @@ class Drift extends $Drift implements IDatabaseRepository {
|
||||||
await m.addColumn(v14.localAssetEntity, v14.localAssetEntity.longitude);
|
await m.addColumn(v14.localAssetEntity, v14.localAssetEntity.longitude);
|
||||||
},
|
},
|
||||||
from14To15: (m, v15) async {
|
from14To15: (m, v15) async {
|
||||||
await m.addColumn(v15.trashedLocalAssetEntity, v15.trashedLocalAssetEntity.source);
|
await m.alterTable(
|
||||||
|
TableMigration(
|
||||||
|
v15.trashedLocalAssetEntity,
|
||||||
|
columnTransformer: {v15.trashedLocalAssetEntity.source: Constant(TrashOrigin.localSync.index)},
|
||||||
|
newColumns: [v15.trashedLocalAssetEntity.source],
|
||||||
|
),
|
||||||
|
);
|
||||||
},
|
},
|
||||||
from15To16: (m, v16) async {
|
from15To16: (m, v16) async {
|
||||||
// Add i_cloud_id to local and remote asset tables
|
// Add i_cloud_id to local and remote asset tables
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue