Browse Source

force scan local season folders to pick up multi-episode files (#242)

pull/243/head
Jason Dove 5 years ago committed by GitHub
parent
commit
ed0796ad58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2889
      ErsatzTV.Infrastructure/Migrations/20210604163535_Reset_LocalSeasonEtag.Designer.cs
  2. 24
      ErsatzTV.Infrastructure/Migrations/20210604163535_Reset_LocalSeasonEtag.cs

2889
ErsatzTV.Infrastructure/Migrations/20210604163535_Reset_LocalSeasonEtag.Designer.cs generated

File diff suppressed because it is too large Load Diff

24
ErsatzTV.Infrastructure/Migrations/20210604163535_Reset_LocalSeasonEtag.cs

@ -0,0 +1,24 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace ErsatzTV.Infrastructure.Migrations
{
public partial class Reset_LocalSeasonEtag : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.Sql(
@"UPDATE LibraryFolder SET Etag = NULL
WHERE LibraryPathId IN
(SELECT MI.LibraryPathId FROM MediaItem MI
INNER JOIN Season S on MI.Id = S.Id
INNER JOIN LibraryPath LP on MI.LibraryPathId = LP.Id
INNER JOIN Library L on LP.LibraryId = L.Id
INNER JOIN LocalLibrary LL on L.Id = LL.Id
WHERE L.MediaKind = 2)");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}
Loading…
Cancel
Save