Browse Source

reset watermarks (#263)

pull/265/head
Jason Dove 5 years ago committed by GitHub
parent
commit
b4ba37f778
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2944
      ErsatzTV.Infrastructure/Migrations/20210614183841_Reset_ChannelWatermarks.Designer.cs
  2. 18
      ErsatzTV.Infrastructure/Migrations/20210614183841_Reset_ChannelWatermarks.cs

2944
ErsatzTV.Infrastructure/Migrations/20210614183841_Reset_ChannelWatermarks.Designer.cs generated

File diff suppressed because it is too large Load Diff

18
ErsatzTV.Infrastructure/Migrations/20210614183841_Reset_ChannelWatermarks.cs

@ -0,0 +1,18 @@ @@ -0,0 +1,18 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace ErsatzTV.Infrastructure.Migrations
{
public partial class Reset_ChannelWatermarks : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.Sql("UPDATE Channel SET WatermarkId = NULL");
migrationBuilder.Sql("DELETE FROM ChannelWatermark");
migrationBuilder.Sql("DELETE FROM ConfigElement WHERE Key LIKE '%watermark%'");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}
Loading…
Cancel
Save