migration succesfull
This commit is contained in:
37
Apollon.EntityFramework/Migrations/20220820005557_initial.cs
Normal file
37
Apollon.EntityFramework/Migrations/20220820005557_initial.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Apollon.EntityFramework.Migrations
|
||||
{
|
||||
public partial class initial : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Tournaments",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
Organisation = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
TournamentName = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
Competition = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
StartDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
EndDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
Location = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
Rounds = table.Column<int>(type: "int", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Tournaments", x => x.Id);
|
||||
});
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "Tournaments");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user