add generated cloudID column with index

This commit is contained in:
shenlong-tanwen
2025-09-03 22:13:22 +05:30
parent 867f4fc53a
commit d02d3b5472
4 changed files with 95 additions and 47 deletions
@@ -131,6 +131,7 @@ class Drift extends $Drift implements IDatabaseRepository {
await m.createIndex(v9.idxLocalAssetCloudId);
// Create new table
await m.createTable(v9.remoteAssetMetadataEntity);
await m.createIndex(v9.uQRemoteAssetMetadataCloudId);
},
from8To9: (m, v9) async {
await m.addColumn(v9.localAlbumEntity, v9.localAlbumEntity.linkedRemoteAlbumId);