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.
 
 
 

45 lines
1.2 KiB

using Microsoft.EntityFrameworkCore.Migrations;
namespace ErsatzTV.Infrastructure.Migrations
{
public partial class Add_Actor_Artwork : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
"ArtworkId",
"Actor",
"INTEGER",
nullable: true);
migrationBuilder.CreateIndex(
"IX_Actor_ArtworkId",
"Actor",
"ArtworkId",
unique: true);
migrationBuilder.AddForeignKey(
"FK_Actor_Artwork_ArtworkId",
"Actor",
"ArtworkId",
"Artwork",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
"FK_Actor_Artwork_ArtworkId",
"Actor");
migrationBuilder.DropIndex(
"IX_Actor_ArtworkId",
"Actor");
migrationBuilder.DropColumn(
"ArtworkId",
"Actor");
}
}
}