diff --git a/Elwig/Elwig.csproj b/Elwig/Elwig.csproj
index d574c3a..06b5d04 100644
--- a/Elwig/Elwig.csproj
+++ b/Elwig/Elwig.csproj
@@ -14,7 +14,8 @@
-
+
+
diff --git a/Elwig/Helpers/AppDbUpdater.cs b/Elwig/Helpers/AppDbUpdater.cs
index 2c1d5d1..3933384 100644
--- a/Elwig/Helpers/AppDbUpdater.cs
+++ b/Elwig/Helpers/AppDbUpdater.cs
@@ -1,5 +1,9 @@
using Microsoft.Data.Sqlite;
using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Reflection;
using System.Threading.Tasks;
namespace Elwig.Helpers {
@@ -7,17 +11,12 @@ namespace Elwig.Helpers {
public static readonly int RequiredSchemaVersion = 12;
- private static int _versionOffset = 0;
- private static readonly Func[] _updaters = [
- UpdateDbSchema_1_To_2, UpdateDbSchema_2_To_3, UpdateDbSchema_3_To_4, UpdateDbSchema_4_To_5,
- UpdateDbSchema_5_To_6, UpdateDBSchema_6_To_7, UpdateDbSchema_7_To_8, UpdateDbSchema_8_To_9,
- UpdateDbSchema_9_To_10, UpdateDbSchema_10_To_11, UpdateDbSchema_11_To_12,
- ];
+ private static int VersionOffset = 0;
private static async Task ExNonQuery(SqliteConnection cnx, string sql) {
using var cmd = cnx.CreateCommand();
cmd.CommandText = sql;
- await cmd.ExecuteNonQueryAsync();
+ await (await cmd.ExecuteReaderAsync()).CloseAsync();
}
private static async Task