using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace TeleWave.Infrastructure.Migrations { /// public partial class ScheduleEntryTrace : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropIndex( name: "IX_ScheduleEntries_ChannelId_ShowId", table: "ScheduleEntries" ); migrationBuilder.AddColumn( name: "SlotId", table: "ScheduleEntries", type: "uuid", nullable: true ); migrationBuilder.AddColumn( name: "TraceJson", table: "ScheduleEntries", type: "jsonb", nullable: true ); migrationBuilder.CreateIndex( name: "IX_ScheduleEntries_ChannelId_ShowId_StartsAtUtc", table: "ScheduleEntries", columns: new[] { "ChannelId", "ShowId", "StartsAtUtc" } ); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropIndex( name: "IX_ScheduleEntries_ChannelId_ShowId_StartsAtUtc", table: "ScheduleEntries" ); migrationBuilder.DropColumn(name: "SlotId", table: "ScheduleEntries"); migrationBuilder.DropColumn(name: "TraceJson", table: "ScheduleEntries"); migrationBuilder.CreateIndex( name: "IX_ScheduleEntries_ChannelId_ShowId", table: "ScheduleEntries", columns: new[] { "ChannelId", "ShowId" } ); } } }