using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace ErsatzTV.Infrastructure.Sqlite.Migrations { /// public partial class Reset_BlockPlayouts_BlockKey : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.Sql(@"DELETE FROM PlayoutHistory"); migrationBuilder.Sql( """ DELETE FROM PlayoutItem WHERE PlayoutId IN (SELECT Id FROM Playout WHERE ProgramSchedulePlayoutType = 2) """); } /// protected override void Down(MigrationBuilder migrationBuilder) { } } }