add generated cloudID column with index
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user