Skip to content

Commit

Permalink
Fixed db issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JGeek00 committed Oct 4, 2022
1 parent 6afeabd commit 65b367c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/services/database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Future<Map<String, dynamic>> loadDb() async {
onCreate: (Database db, int version) async {
await db.execute("CREATE TABLE servers (id TEXT PRIMARY KEY, name TEXT, connectionMethod TEXT, domain TEXT, path TEXT, port INTEGER, user TEXT, password TEXT, defaultServer INTEGER, authToken TEXT)");
await db.execute("CREATE TABLE appConfig (theme NUMERIC, overrideSslCheck NUMERIC, hideZeroValues NUMERIC)");
await db.execute("INSERT INTO appConfig (theme, overrideSslCheck) VALUES (0, 0, 0)");
await db.execute("INSERT INTO appConfig (theme, overrideSslCheck, hideZeroValues) VALUES (0, 0, 0)");
},
onUpgrade: (Database db, int oldVersion, int newVersion) async {
if (oldVersion == 1) {
Expand Down

0 comments on commit 65b367c

Please sign in to comment.