Merge pull request #1154 from MR-TZ-dev/main
fix: error migrating from v3 to v4 database.
This commit is contained in:
@@ -49,7 +49,12 @@ class AppDatabase extends _$AppDatabase with InfraLogger {
|
|||||||
await _prePopulateGeoAssets();
|
await _prePopulateGeoAssets();
|
||||||
},
|
},
|
||||||
from3To4: (m, schema) async {
|
from3To4: (m, schema) async {
|
||||||
await m.addColumn(profileEntries, profileEntries.testUrl);
|
// 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 {
|
beforeOpen: (details) async {
|
||||||
|
|||||||
Reference in New Issue
Block a user