From 827cdaf9f9b8544493f4e694cf28dce1c9d1289a Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Sat, 1 Jun 2024 05:43:00 +0300 Subject: [PATCH] refactor: change create database to migrate --- SqlData/Persistence/DbInitializer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SqlData/Persistence/DbInitializer.cs b/SqlData/Persistence/DbInitializer.cs index 87f3a9b..7bedd91 100644 --- a/SqlData/Persistence/DbInitializer.cs +++ b/SqlData/Persistence/DbInitializer.cs @@ -6,6 +6,6 @@ public static class DbInitializer { public static void Initialize(DbContext dbContext) { - dbContext.Database.EnsureCreated(); + dbContext.Database.Migrate(); } } \ No newline at end of file