mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Move NameValue statistics to database.
This commit is contained in:
@@ -31,15 +31,19 @@
|
||||
// ****************************************************************************/
|
||||
|
||||
using System;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Reflection;
|
||||
using System.Threading.Tasks;
|
||||
using CommandLine;
|
||||
using DiscImageChef.Commands;
|
||||
using DiscImageChef.Console;
|
||||
using DiscImageChef.Database;
|
||||
using DiscImageChef.Database.Migrations;
|
||||
using DiscImageChef.Gui.Forms;
|
||||
using DiscImageChef.Settings;
|
||||
using Eto;
|
||||
using Eto.Forms;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Statistics = DiscImageChef.Core.Statistics;
|
||||
|
||||
namespace DiscImageChef
|
||||
@@ -53,6 +57,10 @@ namespace DiscImageChef
|
||||
DicConsole.WriteEvent += System.Console.Write;
|
||||
DicConsole.ErrorWriteLineEvent += System.Console.Error.WriteLine;
|
||||
|
||||
var ctx = new DicContext();
|
||||
ctx.Database.Migrate();
|
||||
ctx.SaveChanges();
|
||||
|
||||
Settings.Settings.LoadSettings();
|
||||
if((args.Length < 1 || args[0].ToLowerInvariant() != "gui") &&
|
||||
Settings.Settings.Current.GdprCompliance < DicSettings.GdprLevel) Configure.DoConfigure(true);
|
||||
|
||||
Reference in New Issue
Block a user