forked from CyberBloom/CyberBloomBackend
фиксы
This commit is contained in:
parent
414f66dbd0
commit
dba01cdcc6
@ -103,15 +103,9 @@ public class ApplicationContext : IdentityDbContext<User>
|
|||||||
public DbSet<Meeting> Meetings { get; set; }
|
public DbSet<Meeting> Meetings { get; set; }
|
||||||
public ApplicationContext(DbContextOptions<ApplicationContext> options)
|
public ApplicationContext(DbContextOptions<ApplicationContext> options)
|
||||||
: base(options)
|
: base(options)
|
||||||
{
|
|
||||||
try{
|
|
||||||
Database.Migrate();
|
|
||||||
}
|
|
||||||
catch
|
|
||||||
{
|
{
|
||||||
Database.EnsureCreated();
|
Database.EnsureCreated();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
protected override void OnModelCreating(ModelBuilder builder)
|
protected override void OnModelCreating(ModelBuilder builder)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user