Files
ersatztv/ErsatzTV.Infrastructure.MySql/Migrations/20240122152005_Add_PlayoutItemCollectionKey.cs
T

41 lines
1.2 KiB
C#

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");
}
}
}