diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-08-09 16:07:56 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-08-09 16:07:56 +1000 |
| commit | a86dfad7ef5a00a8f942130ba61e71c7cd50602d (patch) | |
| tree | c301263dc60956d230b71f8ef7ad77242876f969 /HyperBooru.cs | |
| parent | e37895553ac379de78e9cf29b315afe4e6634c13 (diff) | |
Initial tag definition editing functionality
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(); |
