diff --git a/CyberBoom/DbContext/User.cs b/CyberBoom/DbContext/User.cs index f13d0fe..74cfb9a 100644 --- a/CyberBoom/DbContext/User.cs +++ b/CyberBoom/DbContext/User.cs @@ -104,13 +104,7 @@ public class ApplicationContext : IdentityDbContext public ApplicationContext(DbContextOptions options) : base(options) { - try{ - Database.Migrate(); - } - catch - { - Database.EnsureCreated(); - } + Database.EnsureCreated(); } protected override void OnModelCreating(ModelBuilder builder)