rebuild all playouts because of time zone change in db (#33)
This commit is contained in:
@@ -174,6 +174,7 @@ namespace ErsatzTV.Infrastructure.Data.Repositories
|
||||
return await _dbContext.Episodes
|
||||
.Include(e => e.EpisodeMetadata)
|
||||
.Include(e => e.MediaVersions)
|
||||
.Include(e => e.Season)
|
||||
.Filter(e => ids.Contains(e.Id))
|
||||
.ToListAsync();
|
||||
}
|
||||
@@ -190,6 +191,7 @@ namespace ErsatzTV.Infrastructure.Data.Repositories
|
||||
return await _dbContext.Episodes
|
||||
.Include(e => e.EpisodeMetadata)
|
||||
.Include(e => e.MediaVersions)
|
||||
.Include(e => e.Season)
|
||||
.Filter(e => ids.Contains(e.Id))
|
||||
.ToListAsync();
|
||||
}
|
||||
@@ -205,6 +207,7 @@ namespace ErsatzTV.Infrastructure.Data.Repositories
|
||||
return await _dbContext.Episodes
|
||||
.Include(e => e.EpisodeMetadata)
|
||||
.Include(e => e.MediaVersions)
|
||||
.Include(e => e.Season)
|
||||
.Filter(e => ids.Contains(e.Id))
|
||||
.ToListAsync();
|
||||
}
|
||||
|
||||
+1471
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,18 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ErsatzTV.Infrastructure.Migrations
|
||||
{
|
||||
public partial class RebuildAllPlayoutsUtc : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql(@"DELETE FROM PlayoutItem");
|
||||
migrationBuilder.Sql(@"DELETE FROM PlayoutProgramScheduleAnchor");
|
||||
migrationBuilder.Sql(@"UPDATE Playout SET Anchor_NextStart = null, Anchor_NextScheduleItemId = null");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user