diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-08-09 09:21:36 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2025-08-18 10:59:32 +1000 |
| commit | 5247aa5a136fcf48d80c8e75625ae773a14fbd26 (patch) | |
| tree | c598c38420f2c996d5233931822fd7f797a1d8db /HyperBooru.cs | |
| parent | 6c53f3dc43f072dce4ffe4a1bd306074dd20ff39 (diff) | |
Added the ability to delete media items
Diffstat (limited to 'HyperBooru.cs')
| -rw-r--r-- | HyperBooru.cs | 3 |
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(); |
