summaryrefslogtreecommitdiff
path: root/HyperBooru.cs
diff options
context:
space:
mode:
Diffstat (limited to 'HyperBooru.cs')
-rw-r--r--HyperBooru.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/HyperBooru.cs b/HyperBooru.cs
index 9ccd323..e0e1b2d 100644
--- a/HyperBooru.cs
+++ b/HyperBooru.cs
@@ -1,3 +1,4 @@
+using Microsoft.EntityFrameworkCore;
using System.Text.Json.Serialization;
namespace HyperBooru;
@@ -20,7 +21,7 @@ public class HyperBooru {
using var scope = app.Services.CreateScope();
using var db = scope.ServiceProvider.GetRequiredService<HyperBooruDbContext>();
- db.Database.EnsureCreated();
+ db.Database.Migrate();
#if DEBUG
app.UseSwagger();