Miese Corona Zeiten push für Lenhardt

This commit is contained in:
Siga
2020-05-10 19:19:53 +02:00
parent 15e4cec8ee
commit efbff34c21
159 changed files with 8042 additions and 8695 deletions

View File

@@ -4,58 +4,58 @@ using Microsoft.EntityFrameworkCore.Migrations;
namespace ReallifeGamemode.Database.Migrations
{
public partial class BusRoutes : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "BusRoutes",
columns: table => new
{
Id = table.Column<int>(nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Description = table.Column<string>(nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_BusRoutes", x => x.Id);
});
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "BusRoutes",
columns: table => new
{
Id = table.Column<int>(nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Description = table.Column<string>(nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_BusRoutes", x => x.Id);
});
migrationBuilder.CreateTable(
name: "BusRoutesPoints",
columns: table => new
{
Id = table.Column<int>(nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Description = table.Column<string>(nullable: true),
X = table.Column<float>(nullable: false),
Y = table.Column<float>(nullable: false),
Z = table.Column<float>(nullable: false),
BusRouteId = table.Column<int>(nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_BusRoutesPoints", x => x.Id);
table.ForeignKey(
name: "FK_BusRoutesPoints_BusRoutes_BusRouteId",
column: x => x.BusRouteId,
principalTable: "BusRoutes",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable(
name: "BusRoutesPoints",
columns: table => new
{
Id = table.Column<int>(nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Description = table.Column<string>(nullable: true),
X = table.Column<float>(nullable: false),
Y = table.Column<float>(nullable: false),
Z = table.Column<float>(nullable: false),
BusRouteId = table.Column<int>(nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_BusRoutesPoints", x => x.Id);
table.ForeignKey(
name: "FK_BusRoutesPoints_BusRoutes_BusRouteId",
column: x => x.BusRouteId,
principalTable: "BusRoutes",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateIndex(
name: "IX_BusRoutesPoints_BusRouteId",
table: "BusRoutesPoints",
column: "BusRouteId");
migrationBuilder.CreateIndex(
name: "IX_BusRoutesPoints_BusRouteId",
table: "BusRoutesPoints",
column: "BusRouteId");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "BusRoutesPoints");
migrationBuilder.DropTable(
name: "BusRoutes");
}
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "BusRoutesPoints");
migrationBuilder.DropTable(
name: "BusRoutes");
}
}
}