Merge pull request #1154 from MR-TZ-dev/main

fix: error migrating from v3 to v4 database.
This commit is contained in:
Hiddify
2024-08-02 09:08:28 +02:00
committed by GitHub

View File

@@ -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 {