Files
hamkadr/src/JobsMedical.Web/Migrations/20260604122404_WebNotificationsToggle.cs
T

32 lines
971 B
C#
Raw Normal View History

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");
}
}
}