summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Project-Unite/Global.asax.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Project-Unite/Global.asax.cs b/Project-Unite/Global.asax.cs
index 89b14c2..a9ee5ca 100644
--- a/Project-Unite/Global.asax.cs
+++ b/Project-Unite/Global.asax.cs
@@ -18,6 +18,7 @@ namespace Project_Unite
{
var configuration = new Migrations.Configuration();
var migrator = new DbMigrator(configuration);
+
migrator.Update();
AreaRegistration.RegisterAllAreas();
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
@@ -27,6 +28,11 @@ namespace Project_Unite
protected void Application_BeginRequest(object sender, EventArgs e)
{
+ var configuration = new Migrations.Configuration();
+ var migrator = new DbMigrator(configuration);
+
+ migrator.Update();
+
var addr = HttpContext.Current.Request.UserHostAddress;
var db = new ApplicationDbContext();