using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace UniVerse.Infrastructure.Migrations
{
    /// <inheritdoc />
    public partial class UniqueTeacherProfileModeusId : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateIndex(
                name: "IX_teacher_profiles_modeus_id",
                table: "teacher_profiles",
                column: "modeus_id",
                unique: true,
                filter: "modeus_id IS NOT NULL");
        }

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