Browse Source

force music video library scan (#159)

pull/160/head v0.0.32-prealpha
Jason Dove 5 years ago committed by GitHub
parent
commit
24f2b4b727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2164
      ErsatzTV.Infrastructure/Migrations/20210409123925_Reset_LibraryPathLastScan_MusicVideos.Designer.cs
  2. 16
      ErsatzTV.Infrastructure/Migrations/20210409123925_Reset_LibraryPathLastScan_MusicVideos.cs

2164
ErsatzTV.Infrastructure/Migrations/20210409123925_Reset_LibraryPathLastScan_MusicVideos.Designer.cs generated

File diff suppressed because it is too large Load Diff

16
ErsatzTV.Infrastructure/Migrations/20210409123925_Reset_LibraryPathLastScan_MusicVideos.cs

@ -0,0 +1,16 @@ @@ -0,0 +1,16 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace ErsatzTV.Infrastructure.Migrations
{
public partial class Reset_LibraryPathLastScan_MusicVideos : Migration
{
protected override void Up(MigrationBuilder migrationBuilder) =>
migrationBuilder.Sql(
@"UPDATE LibraryPath SET LastScan = '0001-01-01 00:00:00' WHERE Id IN
(SELECT LP.Id FROM LibraryPath LP INNER JOIN Library L on L.Id = LP.LibraryId WHERE MediaKind = 3)");
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}
Loading…
Cancel
Save