diff --git a/Discord Media Loader.Application/Classes/Core.cs b/Discord Media Loader.Application/Classes/Core.cs index 2a458b3..402d864 100644 --- a/Discord Media Loader.Application/Classes/Core.cs +++ b/Discord Media Loader.Application/Classes/Core.cs @@ -94,8 +94,7 @@ namespace DML.Application.Classes } Logger.Debug("Loading database..."); - Database = new LiteDatabase(Path.Combine(DataDirectory, "config.db")); - Database.Log.Logging += (message) => Logger.Trace($"LiteDB: {message}"); + Database = new LiteDatabase($"Filename={Path.Combine(DataDirectory, "config.db")};upgrade=true"); Logger.Debug("Loading settings collection out of database..."); var settingsDB = Database.GetCollection("settings"); diff --git a/Discord Media Loader.Application/DML.Application.csproj b/Discord Media Loader.Application/DML.Application.csproj index efdc45f..0731630 100644 --- a/Discord Media Loader.Application/DML.Application.csproj +++ b/Discord Media Loader.Application/DML.Application.csproj @@ -18,7 +18,7 @@ - +