Stream custom live channels using your own media
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

49 lines
1.6 KiB

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ErsatzTV.Infrastructure.MySql.Migrations
{
/// <inheritdoc />
public partial class Add_ScheduleItemRerunCollection : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "RerunCollectionId",
table: "ProgramScheduleItem",
type: "int",
nullable: true);
migrationBuilder.CreateIndex(
name: "IX_ProgramScheduleItem_RerunCollectionId",
table: "ProgramScheduleItem",
column: "RerunCollectionId");
migrationBuilder.AddForeignKey(
name: "FK_ProgramScheduleItem_RerunCollection_RerunCollectionId",
table: "ProgramScheduleItem",
column: "RerunCollectionId",
principalTable: "RerunCollection",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_ProgramScheduleItem_RerunCollection_RerunCollectionId",
table: "ProgramScheduleItem");
migrationBuilder.DropIndex(
name: "IX_ProgramScheduleItem_RerunCollectionId",
table: "ProgramScheduleItem");
migrationBuilder.DropColumn(
name: "RerunCollectionId",
table: "ProgramScheduleItem");
}
}
}