using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Jiaowu.Api.Infrastructure.Persistence.Migrations.MySql
{
    /// <inheritdoc />
    public partial class OptimizePublishedTimetableOccurrenceLookup : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateIndex(
                name: "IX_PublishedScheduleOccurrences_AcademicTermId_Week_DayOfWeek_S~",
                table: "PublishedScheduleOccurrences",
                columns: new[] { "AcademicTermId", "Week", "DayOfWeek", "StartPeriod", "ClassroomId" });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropIndex(
                name: "IX_PublishedScheduleOccurrences_AcademicTermId_Week_DayOfWeek_S~",
                table: "PublishedScheduleOccurrences");
        }
    }
}
