using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace JobsMedical.Web.Migrations
{
    /// <inheritdoc />
    public partial class IranEstekhdamSource : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<bool>(
                name: "IranEstekhdamEnabled",
                table: "AppSettings",
                type: "boolean",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<int>(
                name: "IranEstekhdamMaxAds",
                table: "AppSettings",
                type: "integer",
                nullable: false,
                defaultValue: 40);

            migrationBuilder.AddColumn<bool>(
                name: "IranEstekhdamUseProxy",
                table: "AppSettings",
                type: "boolean",
                nullable: false,
                defaultValue: false);
        }

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

            migrationBuilder.DropColumn(
                name: "IranEstekhdamMaxAds",
                table: "AppSettings");

            migrationBuilder.DropColumn(
                name: "IranEstekhdamUseProxy",
                table: "AppSettings");
        }
    }
}
