Updates liteDB to current version including database upgrade
This commit is contained in:
parent
ed8c876e1b
commit
e5320aad28
|
@ -94,8 +94,7 @@ namespace DML.Application.Classes
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger.Debug("Loading database...");
|
Logger.Debug("Loading database...");
|
||||||
Database = new LiteDatabase(Path.Combine(DataDirectory, "config.db"));
|
Database = new LiteDatabase($"Filename={Path.Combine(DataDirectory, "config.db")};upgrade=true");
|
||||||
Database.Log.Logging += (message) => Logger.Trace($"LiteDB: {message}");
|
|
||||||
|
|
||||||
Logger.Debug("Loading settings collection out of database...");
|
Logger.Debug("Loading settings collection out of database...");
|
||||||
var settingsDB = Database.GetCollection<Settings>("settings");
|
var settingsDB = Database.GetCollection<Settings>("settings");
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<ProjectReference Include="..\libs\Discord.Net\src\Discord.Net.WebSocket\Discord.Net.WebSocket.csproj" />
|
<ProjectReference Include="..\libs\Discord.Net\src\Discord.Net.WebSocket\Discord.Net.WebSocket.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="LiteDB" Version="4.1.4" />
|
<PackageReference Include="LiteDB" Version="5.0.16" />
|
||||||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
||||||
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
|
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
|
||||||
<PackageReference Include="NETStandard.Library" Version="2.0.3" />
|
<PackageReference Include="NETStandard.Library" Version="2.0.3" />
|
||||||
|
|
Loading…
Reference in a new issue