Initial commit
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace AutoBet.Db.Migrations
|
||||
{
|
||||
public partial class AddFixtures : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Fixtures",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<string>(nullable: false),
|
||||
GoingUpdatedTime = table.Column<string>(nullable: true),
|
||||
GoingUpdatedDate = table.Column<string>(nullable: true),
|
||||
FixtureSession = table.Column<int>(nullable: false),
|
||||
AbandonedReasonCode = table.Column<int>(nullable: false),
|
||||
Rail = table.Column<string>(nullable: true),
|
||||
Stalls = table.Column<string>(nullable: true),
|
||||
Other = table.Column<string>(nullable: true),
|
||||
Weather = table.Column<string>(nullable: true),
|
||||
Going = table.Column<string>(nullable: true),
|
||||
MajorEvent = table.Column<int>(nullable: true),
|
||||
TicketsLink = table.Column<string>(nullable: true),
|
||||
CourseId = table.Column<int>(nullable: false),
|
||||
RacePlanningCode = table.Column<int>(nullable: false),
|
||||
RacingTrackType = table.Column<int>(nullable: false),
|
||||
MeetingId = table.Column<int>(nullable: false),
|
||||
FixtureType = table.Column<int>(nullable: false),
|
||||
FixtureName = table.Column<string>(nullable: true),
|
||||
NumberOfRaces = table.Column<int>(nullable: false),
|
||||
BcsEvent = table.Column<int>(nullable: false),
|
||||
BlackTypeRaces = table.Column<int>(nullable: false),
|
||||
EntriesAvailable = table.Column<bool>(nullable: false),
|
||||
RacecardAvailable = table.Column<bool>(nullable: false),
|
||||
ResultsAvailable = table.Column<bool>(nullable: false),
|
||||
FirstRace = table.Column<DateTime>(nullable: true),
|
||||
CourseName = table.Column<string>(nullable: true),
|
||||
Distance = table.Column<string>(nullable: true),
|
||||
FixtureDate = table.Column<DateTime>(nullable: false),
|
||||
FixtureYear = table.Column<int>(nullable: false),
|
||||
FixtureId = table.Column<int>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Fixtures", x => x.Id);
|
||||
});
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "Fixtures");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user