using System; using Microsoft.EntityFrameworkCore.Migrations; namespace AutoBet.Db.Migrations { public partial class RaceRunnerDetails : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "AgeYear", table: "RunnerResults", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "AnimalId", table: "RunnerResults", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "BettingRatio", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "Bred", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "ClothNumber", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "DivisionSequence", table: "RunnerResults", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "DrawnStall", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "FinishTime", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "FinishTimeInMilliseconds", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "HorseId", table: "RunnerResults", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "Hro", table: "RunnerResults", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "JockeyId", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "JockeyName", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "JockeyProfile", table: "RunnerResults", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "LossMilliseconds", table: "RunnerResults", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "NonRunnerDeclaredDate", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "NonRunnerDeclaredReason", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "NonRunnerDeclaredTime", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "OwnerId", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "OwnerName", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "PerformanceFigure", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "Plus10", table: "RunnerResults", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "PositionFinishTime", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "RaceCriteriaRaceType", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "RaceId", table: "RunnerResults", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "RacehorseName", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "RacehorseNameWithoutConuntry", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "Ran", table: "RunnerResults", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "RatingAwt", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "RatingChase", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "RatingFlat", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "RatingHurdle", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "ResultBtnDistance", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "ResultFinishPos", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "SexType", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "SilkImage", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "Status", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "TrainerId", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "TrainerName", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "WbSilkCode", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "WbSilkDescription", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "WeightValue", table: "RunnerResults", nullable: true); migrationBuilder.AddColumn( name: "YearOfRace", table: "RunnerResults", nullable: false, defaultValue: 0); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "AgeYear", table: "RunnerResults"); migrationBuilder.DropColumn( name: "AnimalId", table: "RunnerResults"); migrationBuilder.DropColumn( name: "BettingRatio", table: "RunnerResults"); migrationBuilder.DropColumn( name: "Bred", table: "RunnerResults"); migrationBuilder.DropColumn( name: "ClothNumber", table: "RunnerResults"); migrationBuilder.DropColumn( name: "DivisionSequence", table: "RunnerResults"); migrationBuilder.DropColumn( name: "DrawnStall", table: "RunnerResults"); migrationBuilder.DropColumn( name: "FinishTime", table: "RunnerResults"); migrationBuilder.DropColumn( name: "FinishTimeInMilliseconds", table: "RunnerResults"); migrationBuilder.DropColumn( name: "HorseId", table: "RunnerResults"); migrationBuilder.DropColumn( name: "Hro", table: "RunnerResults"); migrationBuilder.DropColumn( name: "JockeyId", table: "RunnerResults"); migrationBuilder.DropColumn( name: "JockeyName", table: "RunnerResults"); migrationBuilder.DropColumn( name: "JockeyProfile", table: "RunnerResults"); migrationBuilder.DropColumn( name: "LossMilliseconds", table: "RunnerResults"); migrationBuilder.DropColumn( name: "NonRunnerDeclaredDate", table: "RunnerResults"); migrationBuilder.DropColumn( name: "NonRunnerDeclaredReason", table: "RunnerResults"); migrationBuilder.DropColumn( name: "NonRunnerDeclaredTime", table: "RunnerResults"); migrationBuilder.DropColumn( name: "OwnerId", table: "RunnerResults"); migrationBuilder.DropColumn( name: "OwnerName", table: "RunnerResults"); migrationBuilder.DropColumn( name: "PerformanceFigure", table: "RunnerResults"); migrationBuilder.DropColumn( name: "Plus10", table: "RunnerResults"); migrationBuilder.DropColumn( name: "PositionFinishTime", table: "RunnerResults"); migrationBuilder.DropColumn( name: "RaceCriteriaRaceType", table: "RunnerResults"); migrationBuilder.DropColumn( name: "RaceId", table: "RunnerResults"); migrationBuilder.DropColumn( name: "RacehorseName", table: "RunnerResults"); migrationBuilder.DropColumn( name: "RacehorseNameWithoutConuntry", table: "RunnerResults"); migrationBuilder.DropColumn( name: "Ran", table: "RunnerResults"); migrationBuilder.DropColumn( name: "RatingAwt", table: "RunnerResults"); migrationBuilder.DropColumn( name: "RatingChase", table: "RunnerResults"); migrationBuilder.DropColumn( name: "RatingFlat", table: "RunnerResults"); migrationBuilder.DropColumn( name: "RatingHurdle", table: "RunnerResults"); migrationBuilder.DropColumn( name: "ResultBtnDistance", table: "RunnerResults"); migrationBuilder.DropColumn( name: "ResultFinishPos", table: "RunnerResults"); migrationBuilder.DropColumn( name: "SexType", table: "RunnerResults"); migrationBuilder.DropColumn( name: "SilkImage", table: "RunnerResults"); migrationBuilder.DropColumn( name: "Status", table: "RunnerResults"); migrationBuilder.DropColumn( name: "TrainerId", table: "RunnerResults"); migrationBuilder.DropColumn( name: "TrainerName", table: "RunnerResults"); migrationBuilder.DropColumn( name: "WbSilkCode", table: "RunnerResults"); migrationBuilder.DropColumn( name: "WbSilkDescription", table: "RunnerResults"); migrationBuilder.DropColumn( name: "WeightValue", table: "RunnerResults"); migrationBuilder.DropColumn( name: "YearOfRace", table: "RunnerResults"); } } }