mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-23 01:32:16 +00:00
allow dataloss
This commit is contained in:
parent
ca5954e7d2
commit
5785c29e95
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@ public class MvcApplication : System.Web.HttpApplication
|
||||||
protected void Application_Start()
|
protected void Application_Start()
|
||||||
{
|
{
|
||||||
var configuration = new Migrations.Configuration();
|
var configuration = new Migrations.Configuration();
|
||||||
|
configuration.AutomaticMigrationDataLossAllowed = true;
|
||||||
var migrator = new DbMigrator(configuration);
|
var migrator = new DbMigrator(configuration);
|
||||||
|
|
||||||
migrator.Update();
|
migrator.Update();
|
||||||
|
|
Loading…
Reference in a new issue