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