force scan local season folders to pick up multi-episode files (#242)
This commit is contained in:
+2889
File diff suppressed because it is too large
Load Diff
@@ -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)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user