From 27d72e5497b981948cf51058e59948551ce7fc2c Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 21 Mar 2017 12:32:39 -0400 Subject: [PATCH] KILL ME I'M IN CONSTANT PAIN --- Project-Unite/Global.asax.cs | 6 ++++++ 1 file changed, 6 insertions(+) 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 @@ protected void Application_Start() { var configuration = new Migrations.Configuration(); var migrator = new DbMigrator(configuration); + migrator.Update(); AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); @@ -27,6 +28,11 @@ protected void Application_Start() 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();