fix: error migrating from v3 to v4 database.

This commit is contained in:
MR_TZ.dev
2024-08-01 11:15:55 +03:30
parent 52fa311df5
commit 5ac531fe15

View File

@@ -49,7 +49,12 @@ class AppDatabase extends _$AppDatabase with InfraLogger {
await _prePopulateGeoAssets();
},
from3To4: (m, schema) async {
// TODO: check if column exists, if not then add column
try {
await m.addColumn(profileEntries, profileEntries.testUrl);
} on Exception catch (err) {
loggy.debug(err);
}
},
),
beforeOpen: (details) async {