refactor: change create database to migrate
All checks were successful
.NET Test Pipeline / build-and-test (pull_request) Successful in 2m1s

This commit is contained in:
Polianin Nikita 2024-06-01 05:43:00 +03:00
parent d2ba2d982c
commit 827cdaf9f9

View File

@ -6,6 +6,6 @@ public static class DbInitializer
{
public static void Initialize(DbContext dbContext)
{
dbContext.Database.EnsureCreated();
dbContext.Database.Migrate();
}
}