* rework television media * refactor poster saving * television and movie views are working again * remove dead code * use paper styling for all cards * add show poster, plot to seasons page * remove missing shows; cleanup interfaces * fix split show display (same show in different folders/sources) * add placeholder "add to schedule" button * no more duplicate television shows, even with the same show split across sources * stop releasing CLI for now * use season number as season placeholder * add television shows to collections * add television seasons to collections * add television episodes to collections * add movies to collections * remove movies, shows, seasons, episodes from collections * fix page width and menus * fix buffer size defaults * fix chronological episode ordering * allow deleting media collections * don't get stuck building a playout with an empty collection * schedule editing and playouts work again * minor cleanup * remove dead code * fix bugs with viewing movies as they are loading * add scanner tests; support nested movie folders * update collections docs * rearrange order of schedule items * add show and season to schedule * delete schedules that use legacy collections, reset all posters * move cleanup to new migration * load fallback metadata when nfo fails; don't require metadata in ui * update readme and screenshots
26 lines
998 B
C#
26 lines
998 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace ErsatzTV.Infrastructure.Migrations
|
|
{
|
|
public partial class RemoveScheduleItemsAndPosters : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
// delete program schedule items that referenced television collections (that no longer exist)
|
|
migrationBuilder.Sql(
|
|
"delete from ProgramScheduleItems where MediaCollectionId not in (select Id from SimpleMediaCollections)");
|
|
|
|
// delete television collections that no longer exist/work
|
|
migrationBuilder.Sql(
|
|
"delete from MediaCollections where Id not in (select Id from SimpleMediaCollections)");
|
|
|
|
// delete all posters so they are all re-cached with a higher resolution
|
|
migrationBuilder.Sql("update MediaItems set Poster = null");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
}
|
|
}
|
|
}
|