using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace JobsMedical.Web.Migrations
{
    /// <inheritdoc />
    public partial class WebNotificationsToggle : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            // Default TRUE so existing installs keep the in-app/web channel ON after upgrade
            // (matches AppSetting.WebNotificationsEnabled = true).
            migrationBuilder.AddColumn<bool>(
                name: "WebNotificationsEnabled",
                table: "AppSettings",
                type: "boolean",
                nullable: false,
                defaultValue: true);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "WebNotificationsEnabled",
                table: "AppSettings");
        }
    }
}
