mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-27 01:06:12 +00:00
Small fixes
This commit is contained in:
parent
cf5af1061f
commit
df46d4b53f
2 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue