public override void Uninstall() { //run the migrator. this will remove all the tables created by this migration var migrator = new OAuthDbMigrator(new Configuration()); migrator.Update("0"); base.Uninstall(); }
public override void Install() { //set db context to null to avoid any errors DatabaseManager.SetDbInitializer <OAuthDbContext>(null); //run the migrator. this will update any pending tasks or updates to database var migrator = new OAuthDbMigrator(new Configuration()); migrator.Update(); base.Install(); }