using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ErsatzTV.Infrastructure.MySql.Migrations
{
///
public partial class Add_PlayoutBuildStatus : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "PlayoutBuildStatus",
columns: table => new
{
PlayoutId = table.Column(type: "int", nullable: false),
LastBuild = table.Column(type: "datetime(6)", nullable: false),
Success = table.Column(type: "tinyint(1)", nullable: false),
Message = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4")
},
constraints: table =>
{
table.PrimaryKey("PK_PlayoutBuildStatus", x => x.PlayoutId);
table.ForeignKey(
name: "FK_PlayoutBuildStatus_Playout_PlayoutId",
column: x => x.PlayoutId,
principalTable: "Playout",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "PlayoutBuildStatus");
}
}
}