diff options
| author | Michael <[email protected]> | 2017-03-21 12:32:39 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-03-21 12:32:39 -0400 |
| commit | 27d72e5497b981948cf51058e59948551ce7fc2c (patch) | |
| tree | e51f1a92cf0ce15f0ab946af3a4336fa81697234 | |
| parent | 435f7aa087a36f0a747f84608e04c175947df782 (diff) | |
| download | project-unite-27d72e5497b981948cf51058e59948551ce7fc2c.tar.gz project-unite-27d72e5497b981948cf51058e59948551ce7fc2c.tar.bz2 project-unite-27d72e5497b981948cf51058e59948551ce7fc2c.zip | |
KILL ME I'M IN CONSTANT PAIN
| -rw-r--r-- | Project-Unite/Global.asax.cs | 6 |
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(); |
