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
+2 -2
View File
@@ -72,7 +72,7 @@ Future<void> migrateDatabaseIfNeeded(Isar db, Drift drift) async {
if (version < 15) {
try {
await _updateCloudId(drift);
await updateCloudId(drift);
} catch (error) {
Logger("Migration").warning("Error occurred while updating cloud ID: $error");
// do not update version when error occurs so this is retried the next time
@@ -189,7 +189,7 @@ Future<void> migrateDeviceAssetToSqlite(Isar db, Drift drift) async {
}
}
Future<void> _updateCloudId(Drift drift) async {
Future<void> updateCloudId(Drift drift) async {
// Android do not have a concept of cloud IDs
if (Platform.isAndroid) {
return;