* add multiple watermarks per playout item * fixes * update yaml playout watermark to support multiple watermarks * use graphics engine for intermittent watermarks
52 lines
1.9 KiB
C#
52 lines
1.9 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace ErsatzTV.Infrastructure.MySql.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class Add_PlayoutItemWatermark : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "PlayoutItemWatermark",
|
|
columns: table => new
|
|
{
|
|
PlayoutItemId = table.Column<int>(type: "int", nullable: false),
|
|
WatermarkId = table.Column<int>(type: "int", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_PlayoutItemWatermark", x => new { x.PlayoutItemId, x.WatermarkId });
|
|
table.ForeignKey(
|
|
name: "FK_PlayoutItemWatermark_ChannelWatermark_WatermarkId",
|
|
column: x => x.WatermarkId,
|
|
principalTable: "ChannelWatermark",
|
|
principalColumn: "Id",
|
|
onDelete: ReferentialAction.Cascade);
|
|
table.ForeignKey(
|
|
name: "FK_PlayoutItemWatermark_PlayoutItem_PlayoutItemId",
|
|
column: x => x.PlayoutItemId,
|
|
principalTable: "PlayoutItem",
|
|
principalColumn: "Id",
|
|
onDelete: ReferentialAction.Cascade);
|
|
})
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_PlayoutItemWatermark_WatermarkId",
|
|
table: "PlayoutItemWatermark",
|
|
column: "WatermarkId");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "PlayoutItemWatermark");
|
|
}
|
|
}
|
|
}
|