Skip to content

Commit

Permalink
Update ApplicationSettings.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
woutervanranst committed Oct 9, 2024
1 parent 1b27e44 commit 0a25bd2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Arius.UI/Utils/ApplicationSettings.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
using System.ComponentModel.DataAnnotations.Schema;
using System.IO;
using Arius.UI.Extensions;
using Arius.UI.Extensions;
using Arius.UI.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using WouterVanRanst.Utils.Extensions;
using System.ComponentModel.DataAnnotations.Schema;
using System.IO;

namespace Arius.UI.Utils;

Expand All @@ -17,7 +16,7 @@ public ApplicationSettings(string dbPath)
this.dbPath = dbPath;

using var db = GetContext();
dbPath.CreateDirectoryIfNotExists();
Directory.CreateDirectory(dbPath);
db.Database.EnsureCreated();
}

Expand Down

0 comments on commit 0a25bd2

Please sign in to comment.