фиксы
Create and publish a Docker image / Publish image (push) Successful in 50s
Create and publish a Docker image / Deploy image (push) Successful in 33s

This commit is contained in:
yahuman committed 2023-12-23 02:30:45 +03:00
1 parent 414f66dbd0
commit dba01cdcc6
1 file changed
-6
-6
View File
@@ -103,15 +103,9 @@ public class ApplicationContext : IdentityDbContext<User>
public DbSet<Meeting> Meetings { get; set; }
public ApplicationContext(DbContextOptions<ApplicationContext> options)
: base(options)
{
try{
Database.Migrate();
}
catch
{
Database.EnsureCreated();
}
}
protected override void OnModelCreating(ModelBuilder builder)
{