fix loading playout anchors (#296)

This commit is contained in:
Jason Dove
2021-07-11 10:47:25 -05:00
committed by GitHub
parent 5f28707cce
commit 0733a3d8d7
2 changed files with 3001 additions and 0 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,22 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace ErsatzTV.Infrastructure.Migrations
{
public partial class Fix_PlayoutAnchorInFlood : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.Sql("UPDATE Playout SET Anchor_InFlood = 0 WHERE Anchor_InFlood IS NULL");
migrationBuilder.AlterColumn<bool>(
name: "Anchor_InFlood",
table: "Playout",
type: "INTEGER",
nullable: false);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}