Small fixes

This commit is contained in:
Juan Gilsanz Polo 2023-05-21 00:43:24 +02:00
parent cf5af1061f
commit df46d4b53f
2 changed files with 2 additions and 0 deletions

View file

@ -371,6 +371,7 @@ class AppConfigProvider with ChangeNotifier {
_useThemeColorForStatus = dbData['useThemeColorForStatus'] != null ? convertFromIntToBool(dbData['useThemeColorForStatus'])! : false;
_showTimeLogs = dbData['showTimeLogs'];
_doNotRememberVersion = dbData['doNotRememberVersion'];
_showIpLogs = dbData['showIpLogs'];
_combinedChartHome = dbData['combinedChart'];
_dbInstance = dbInstance;

View file

@ -75,6 +75,7 @@ Future<Map<String, dynamic>> loadDb(bool acceptsDynamicTheme) async {
await db.execute("ALTER TABLE appConfig RENAME COLUMN showNameTimeLogs TO showTimeLogs");
await db.execute("ALTER TABLE appConfig ADD COLUMN showIpLogs NUMERIC");
await db.execute("ALTER TABLE appConfig ADD COLUMN combinedChart NUMERIC");
await db.execute("UPDATE appConfig SET showIpLogs = 0, combinedChart = 0");
await db.transaction((txn) async{
await txn.rawQuery(