optimize song artwork scanning (#527)

This commit is contained in:
Jason Dove
2021-12-03 13:40:55 -06:00
committed by GitHub
parent 3773bbec19
commit abc103308b
9 changed files with 4010 additions and 24 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,25 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ErsatzTV.Infrastructure.Migrations
{
public partial class Add_ArtworkSourcePath : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "SourcePath",
table: "Artwork",
type: "TEXT",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "SourcePath",
table: "Artwork");
}
}
}
@@ -186,6 +186,9 @@ namespace ErsatzTV.Infrastructure.Migrations
b.Property<int?>("SongMetadataId")
.HasColumnType("INTEGER");
b.Property<string>("SourcePath")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("ArtistMetadataId");