add tests, replace playout items when collections are updated (#1566)

This commit is contained in:
Jason Dove
2024-01-22 10:10:22 -06:00
committed by GitHub
parent 83fc3081d8
commit b88deaafe5
17 changed files with 10366 additions and 33 deletions
@@ -0,0 +1,40 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ErsatzTV.Infrastructure.MySql.Migrations
{
/// <inheritdoc />
public partial class Add_PlayoutItemCollectionKey : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "CollectionEtag",
table: "PlayoutItem",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "CollectionKey",
table: "PlayoutItem",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CollectionEtag",
table: "PlayoutItem");
migrationBuilder.DropColumn(
name: "CollectionKey",
table: "PlayoutItem");
}
}
}