* add multiple watermarks per playout item * fixes * update yaml playout watermark to support multiple watermarks * use graphics engine for intermittent watermarks
50 lines
1.5 KiB
C#
50 lines
1.5 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace ErsatzTV.Infrastructure.MySql.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class Remove_PlayoutItemWatermark : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropForeignKey(
|
|
name: "FK_PlayoutItem_ChannelWatermark_WatermarkId",
|
|
table: "PlayoutItem");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_PlayoutItem_WatermarkId",
|
|
table: "PlayoutItem");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "WatermarkId",
|
|
table: "PlayoutItem");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "WatermarkId",
|
|
table: "PlayoutItem",
|
|
type: "int",
|
|
nullable: true);
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_PlayoutItem_WatermarkId",
|
|
table: "PlayoutItem",
|
|
column: "WatermarkId");
|
|
|
|
migrationBuilder.AddForeignKey(
|
|
name: "FK_PlayoutItem_ChannelWatermark_WatermarkId",
|
|
table: "PlayoutItem",
|
|
column: "WatermarkId",
|
|
principalTable: "ChannelWatermark",
|
|
principalColumn: "Id",
|
|
onDelete: ReferentialAction.SetNull);
|
|
}
|
|
}
|
|
}
|