using Backend.Data;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Backend.Migrations
{
    /// <inheritdoc />
    [DbContext(typeof(AwardsDbContext))]
    [Migration("20260624150500_AddRiskFlagReviewNote")]
    public partial class AddRiskFlagReviewNote : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.Sql(
                """
                ALTER TABLE IF EXISTS "RiskFlags"
                ADD COLUMN IF NOT EXISTS "ReviewNote" character varying(500) NULL;
                """);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.Sql(
                """
                ALTER TABLE IF EXISTS "RiskFlags"
                DROP COLUMN IF EXISTS "ReviewNote";
                """);
        }
    }
}
