Skip to content

Commit

Permalink
Merge pull request #1154 from MR-TZ-dev/main
Browse files Browse the repository at this point in the history
fix: error migrating from v3 to v4 database.
  • Loading branch information
hiddify-com authored Aug 2, 2024
2 parents 07bd5f2 + 5ac531f commit ef1ee39
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/core/database/app_database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ class AppDatabase extends _$AppDatabase with InfraLogger {
await _prePopulateGeoAssets();
},
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 {
Expand Down

0 comments on commit ef1ee39

Please sign in to comment.