summaryrefslogtreecommitdiff
path: root/HyperBooru.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2023-08-09 16:07:56 +1000
committerJake Mannens <jake@asger.xyz>2023-08-09 16:07:56 +1000
commita86dfad7ef5a00a8f942130ba61e71c7cd50602d (patch)
treec301263dc60956d230b71f8ef7ad77242876f969 /HyperBooru.cs
parente37895553ac379de78e9cf29b315afe4e6634c13 (diff)
Initial tag definition editing functionality
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();